aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-07-04 22:57:52 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-07-04 22:57:52 +0200
commit430d063f50824b0b268e73c8577705dc2c4fc318 (patch)
tree94027b85fad203a664e2b57e50b78d994eafd80b /share
parent86d026fd30258085522571061124dc21b2ca91ab (diff)
helix: add ignores
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 = {