about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-02 15:57:21 +0100
committerSoispha <soispha@vhack.eu>2023-12-02 15:57:21 +0100
commitf440a086fbd78cc3aa09170165a8153109a7e8c2 (patch)
treef8bdf16b5f8d228671c0fde1260535ea02368206
parentfeat(sys/srvs/postgresql): Re-enable (diff)
downloadnixos-config-f440a086fbd78cc3aa09170165a8153109a7e8c2.tar.gz
nixos-config-f440a086fbd78cc3aa09170165a8153109a7e8c2.zip
feat(hm/conf/nvim/plgs/lsp/servers): Add python language servers
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/default.nix4
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/servers/pylyzer.nix12
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/servers/ruff-lsp.nix10
3 files changed, 25 insertions, 1 deletions
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
index 8ffac2e1..1a5b6cb5 100644
--- a/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
+++ b/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
@@ -1,11 +1,13 @@
 {...}: {
   imports = [
     ./servers/bashls.nix
+    ./servers/ccls.nix
     ./servers/ltex.nix
     ./servers/lua-ls.nix
     ./servers/nil_ls.nix
+    ./servers/pylyzer.nix
+    ./servers/ruff-lsp.nix
     ./servers/rust-analyzer.nix
     ./servers/texlab.nix
-    ./servers/ccls.nix
   ];
 }
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/servers/pylyzer.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/pylyzer.nix
new file mode 100644
index 00000000..b1042221
--- /dev/null
+++ b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/pylyzer.nix
@@ -0,0 +1,12 @@
+{pkgs, ...}: {
+  programs.nixvim = {
+    extraConfigLuaPost =
+      /*
+      lua
+      */
+      ''
+        require('lspconfig').pylyzer.setup{}
+      '';
+    extraPackages = with pkgs; [pylyzer];
+  };
+}
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/servers/ruff-lsp.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/ruff-lsp.nix
new file mode 100644
index 00000000..3eeb495a
--- /dev/null
+++ b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/ruff-lsp.nix
@@ -0,0 +1,10 @@
+{pkgs, ...}: {
+  programs.nixvim = {
+    plugins.lsp.servers = {
+      ruff-lsp = {
+        enable = true;
+      };
+    };
+    extraPackages = with pkgs; [ruff];
+  };
+}