aboutsummaryrefslogtreecommitdiff
path: root/share/cfg/helix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'share/cfg/helix.nix')
-rw-r--r--share/cfg/helix.nix37
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 = {