From ac5e62a37ce51b1efaf4f2e323bf24a88188cc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 22 Jun 2024 19:06:45 +0200 Subject: [PATCH] [feat] nvim: enable more lsps Also, don't install rust-analyzer, install it externally (e.g. rustup) --- nvim/plugins.nix | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/nvim/plugins.nix b/nvim/plugins.nix index c55020d..a0a0cfc 100644 --- a/nvim/plugins.nix +++ b/nvim/plugins.nix @@ -141,6 +141,17 @@ in }; }; gitsigns.enable = true; + lint = { + enable = true; + lintersByFt = { + rust = ["typos"]; + latex = ["chktex" "typos"]; + markdown = ["typos"]; + nix = ["statix"]; + sh = ["dash"]; + zsh = ["zsh"]; + }; + }; lsp = { enable = true; servers = { @@ -149,6 +160,8 @@ in # clangd.enable = true; # Adds ~2GiB html.enable = true; jsonls.enable = true; + marksman.enable = true; + nixd.enable = true; nil-ls = { enable = true; settings.nix.flake = { @@ -209,7 +222,11 @@ in mode = "virtualtext"; }; }; - rustaceanvim.enable = true; + rustaceanvim = { + enable = true; + # Install through rustup + rustAnalyzerPackage = null; + }; telescope = { enable = true; extensions = { @@ -226,16 +243,5 @@ in enable = true; settings.auto_close = true; }; - lint = { - enable = true; - lintersByFt = { - rust = ["typos"]; - latex = ["chktex" "typos"]; - markdown = ["typos"]; - nix = ["statix"]; - sh = ["dash"]; - zsh = ["zsh"]; - }; - }; }; }