diff options
author | Soispha <soispha@vhack.eu> | 2023-12-02 15:57:21 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-12-02 15:57:21 +0100 |
commit | f440a086fbd78cc3aa09170165a8153109a7e8c2 (patch) | |
tree | f8bdf16b5f8d228671c0fde1260535ea02368206 | |
parent | feat(sys/srvs/postgresql): Re-enable (diff) | |
download | nixos-config-f440a086fbd78cc3aa09170165a8153109a7e8c2.tar.gz nixos-config-f440a086fbd78cc3aa09170165a8153109a7e8c2.zip |
feat(hm/conf/nvim/plgs/lsp/servers): Add python language servers
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]; + }; +} |