mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 12:23:56 -05:00
home/vscode: add nix lsp settings
This commit is contained in:
parent
a1934a697d
commit
44cb60783d
|
@ -14,12 +14,36 @@
|
||||||
"diffEditor.ignoreTrimWhitespace" = false;
|
"diffEditor.ignoreTrimWhitespace" = false;
|
||||||
"editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace";
|
"editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace";
|
||||||
"editor.fontSize" = lib.mkDefault 14;
|
"editor.fontSize" = lib.mkDefault 14;
|
||||||
|
"editor.formatOnPaste" = true;
|
||||||
|
"editor.formatOnSave" = true;
|
||||||
|
"editor.formatOnType" = true;
|
||||||
"editor.rulers" = [80];
|
"editor.rulers" = [80];
|
||||||
"explorer.confirmDelete" = false;
|
"explorer.confirmDelete" = false;
|
||||||
"files.autoSave" = "afterDelay";
|
"files.autoSave" = "afterDelay";
|
||||||
"git.autofetch" = true;
|
"git.autofetch" = true;
|
||||||
"git.confirmSync" = false;
|
"git.confirmSync" = false;
|
||||||
"nix.formatterPath" = lib.getExe pkgs.alejandra;
|
|
||||||
|
"nix" = {
|
||||||
|
"enableLanguageServer" = true;
|
||||||
|
"formatterPath" = lib.getExe pkgs.alejandra;
|
||||||
|
"serverPath" = lib.getExe pkgs.nil;
|
||||||
|
|
||||||
|
"serverSettings"."nil" = {
|
||||||
|
"diagnostics" = {
|
||||||
|
"ignored" = ["unused_binding" "unused_with"];
|
||||||
|
};
|
||||||
|
|
||||||
|
"formatting" = {
|
||||||
|
"command" = ["${lib.getExe pkgs.alejandra}"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"[shellscript]" = {
|
||||||
|
"editor.defaultFormatter" = "foxundermoon.shell-format";
|
||||||
|
};
|
||||||
|
"shellformat.flag" = "-i 4";
|
||||||
|
|
||||||
"terminal.external.linuxExec" = lib.getExe config.ar.home.defaultApps.terminal;
|
"terminal.external.linuxExec" = lib.getExe config.ar.home.defaultApps.terminal;
|
||||||
"terminal.integrated.fontSize" = lib.mkDefault 14;
|
"terminal.integrated.fontSize" = lib.mkDefault 14;
|
||||||
"update.mode" = "none";
|
"update.mode" = "none";
|
||||||
|
@ -40,6 +64,7 @@
|
||||||
|
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
coolbear.systemd-unit-file
|
coolbear.systemd-unit-file
|
||||||
|
foxundermoon.shell-format
|
||||||
github.vscode-github-actions
|
github.vscode-github-actions
|
||||||
github.vscode-pull-request-github
|
github.vscode-pull-request-github
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
|
|
Loading…
Reference in a new issue