diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-07-06 06:48:40 +0200 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-07-06 06:48:40 +0200 |
| commit | c97a1d66084aaf50ca816d9c482f296d31346f9f (patch) | |
| tree | d03726dfb1edfa87b93ca42b9076658c7c50c940 /share/cfg/helix.nix | |
| parent | fed01b401d65e655f565fc5c6304f2ab0d758513 (diff) | |
formatting
Diffstat (limited to 'share/cfg/helix.nix')
| -rw-r--r-- | share/cfg/helix.nix | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/share/cfg/helix.nix b/share/cfg/helix.nix index 78c22fe..dd99557 100644 --- a/share/cfg/helix.nix +++ b/share/cfg/helix.nix @@ -1,9 +1,11 @@ { -# inputs, -pkgs, -# config, -# lib, -... }: { + # inputs, + pkgs, + # config, + # lib, + ... +}: +{ programs.helix = { defaultEditor = true; extraPackages = with pkgs; [ @@ -64,8 +66,7 @@ pkgs, 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,8 +97,14 @@ pkgs, 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; } { @@ -124,14 +131,22 @@ pkgs, { 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" ]; + ignores = [ + "*.lock" + "!.gitignore" + "!.cargo" + ]; }; # end of programs.helix # xdg.configFile = { |
