about summary refs log tree commit diff stats
path: root/home-manager/soispha/config/neovim/nixvim/plugins/lsp
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-19 17:10:01 +0200
committerSoispha <soispha@vhack.eu>2023-08-19 17:36:04 +0200
commitde266305ddfcaec0e3477164b4d9bdf1a596a124 (patch)
tree0c24d98855fa602157ef84e50769aa23614ed23c /home-manager/soispha/config/neovim/nixvim/plugins/lsp
parentFix(hm/conf/nvim): Import neovim config (diff)
downloadnixos-config-de266305ddfcaec0e3477164b4d9bdf1a596a124.zip
Fix(hm/conf/neovim): Fully import nvim config through nixVim
Diffstat (limited to 'home-manager/soispha/config/neovim/nixvim/plugins/lsp')
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/default.nix11
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/bashls.nix5
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/ltex.nix39
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/lua-ls.nix8
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/nil_ls.nix10
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/rust-analyzer.nix10
-rw-r--r--home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/texlab.nix7
7 files changed, 87 insertions, 3 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/default.nix
index 8d5cfaf1..dc8210d1 100644
--- a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/default.nix
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/default.nix
@@ -1,5 +1,10 @@
 {...}: {
-  programs.nixvim.plugins.lsp.servers = {
-
-  };
+  imports = [
+    ./servers/bashls.nix
+    ./servers/ltex.nix
+    ./servers/lua-ls.nix
+    ./servers/nil_ls.nix
+    ./servers/rust-analyzer.nix
+    ./servers/texlab.nix
+  ];
 }
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/bashls.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/bashls.nix
new file mode 100644
index 00000000..0577a335
--- /dev/null
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/bashls.nix
@@ -0,0 +1,5 @@
+{...}: {
+  programs.nixvim.plugins.lsp.servers = {
+    bashls.enable = true;
+  };
+}
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/ltex.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/ltex.nix
new file mode 100644
index 00000000..9fc42473
--- /dev/null
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/ltex.nix
@@ -0,0 +1,39 @@
+{...}: {
+  programs.nixvim.plugins.lsp.servers = {
+    ltex = let
+      filetypes = [
+        "rust"
+        "java"
+        "cpp"
+        "shell"
+        "bash"
+
+        "bibtex"
+        "context"
+        "context.tex"
+        "latex"
+        "tex"
+
+        "html"
+        "markdown"
+        "org"
+        "restructuredtext"
+        "rsweave"
+
+        "git-commit"
+        "gitcommit"
+      ];
+    in {
+      enable = true;
+      inherit filetypes;
+      settings = {
+        enabled = filetypes;
+        completionEnabled = true;
+        language = "en-CA";
+        additionalRules = {
+          enablePickyRules = true;
+        };
+      };
+    };
+  };
+}
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/lua-ls.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/lua-ls.nix
new file mode 100644
index 00000000..5a44b500
--- /dev/null
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/lua-ls.nix
@@ -0,0 +1,8 @@
+{...}: {
+  programs.nixvim.plugins.lsp.servers = {
+    lua-ls = {
+      enable = true;
+      settings.telemetry.enable = false;
+    };
+  };
+}
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/nil_ls.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/nil_ls.nix
new file mode 100644
index 00000000..f0cccbdc
--- /dev/null
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/nil_ls.nix
@@ -0,0 +1,10 @@
+{...}: {
+  programs.nixvim.plugins.lsp.servers = {
+    nil_ls = {
+      enable = true;
+      settings = {
+        formatting.command = ["alejandra"];
+      };
+    };
+  };
+}
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/rust-analyzer.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/rust-analyzer.nix
new file mode 100644
index 00000000..943a8c80
--- /dev/null
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/rust-analyzer.nix
@@ -0,0 +1,10 @@
+{...}: {
+  programs.nixvim.plugins.lsp.servers = {
+    rust-analyzer = {
+      enable = true;
+      settings = {
+        typing.autoClosingAngleBrackets.enable = true;
+      };
+    };
+  };
+}
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/texlab.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/texlab.nix
new file mode 100644
index 00000000..59af8d39
--- /dev/null
+++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/servers/servers/texlab.nix
@@ -0,0 +1,7 @@
+{...}: {
+  programs.nixvim.plugins.lsp.servers = {
+    texlab = {
+      enable = true;
+    };
+  };
+}