From 430d063f50824b0b268e73c8577705dc2c4fc318 Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Thu, 4 Jul 2024 22:57:52 +0200 Subject: helix: add ignores --- share/cfg/helix.nix | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'share') diff --git a/share/cfg/helix.nix b/share/cfg/helix.nix index dabffcd..78c22fe 100644 --- a/share/cfg/helix.nix +++ b/share/cfg/helix.nix @@ -1,12 +1,11 @@ { - # inputs, - pkgs -, # config, - # lib, - ... -}: -{ +# inputs, +pkgs, +# config, +# lib, +... }: { programs.helix = { + defaultEditor = true; extraPackages = with pkgs; [ rust-analyzer rustfmt @@ -65,7 +64,8 @@ command = "astro-ls"; args = [ "--stdio" ]; config = { - typescript.tsdk = "${pkgs.typescript}/lib/node_modules/typescript/lib"; + typescript.tsdk = + "${pkgs.typescript}/lib/node_modules/typescript/lib"; environment = "node"; }; # language-server.snippets-html = { @@ -96,14 +96,8 @@ scope = "source.astro"; injection-regex = "astro"; file-types = [ "astro" ]; - roots = [ - "package.json" - "astro.config.mjs" - ]; - language-servers = [ - "astro-ls" - "emmet-ls" - ]; + roots = [ "package.json" "astro.config.mjs" ]; + language-servers = [ "astro-ls" "emmet-ls" ]; auto-format = true; } { @@ -130,16 +124,14 @@ { name = "typescript"; shebangs = [ "deno" ]; - roots = [ - "deno.json" - "deno.jsonc" - "package.json" - ]; + roots = [ "deno.json" "deno.jsonc" "package.json" ]; auto-format = true; language-servers = [ "deno-lsp" ]; } ]; }; # end of languages + + ignores = [ "*.lock" "!.gitignore" "!.cargo" ]; }; # end of programs.helix # xdg.configFile = { -- cgit v1.3.1