Added nixd

This commit is contained in:
Alejandro Angulo 2023-07-21 20:51:30 -07:00
parent d5969ca923
commit d739f578a1
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 13 additions and 1 deletions

5
.nixd.json Normal file
View file

@ -0,0 +1,5 @@
{
"formatting": {
"command": "alejandra"
}
}

View file

@ -19,7 +19,7 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [fzf fd]; environment.systemPackages = with pkgs; [fzf fd nixd];
aa.home.dataFile = { aa.home.dataFile = {
${cfg.tmuxThemePath}.source = ./tmux_theme; ${cfg.tmuxThemePath}.source = ./tmux_theme;
@ -150,6 +150,13 @@ in {
settings = { settings = {
"coc.preferences.formatOnSave" = true; "coc.preferences.formatOnSave" = true;
"python.formatting.provider" = "black"; "python.formatting.provider" = "black";
"languageserver" = {
"nixd" = {
"command" = "nixd";
"rootPatterns" = [".nixd.json"];
"filetypes" = ["nix"];
};
};
}; };
# Copied the below from coc's README # Copied the below from coc's README