aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/cfg/helix.nix34
1 files changed, 13 insertions, 21 deletions
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 = {