From dd5a1d52dab48843397f0ce9f9ef7db83c24ea5c Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Mon, 2 Dec 2024 23:08:51 +0100 Subject: [PATCH] NixVim: Add Rust --- home/features/coding/nixvim/lsp.nix | 40 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/home/features/coding/nixvim/lsp.nix b/home/features/coding/nixvim/lsp.nix index 6149c0f..ec8ff84 100644 --- a/home/features/coding/nixvim/lsp.nix +++ b/home/features/coding/nixvim/lsp.nix @@ -1,24 +1,28 @@ { - programs.nixvim.plugins.lsp = { - enable = true; - inlayHints = true; + programs.nixvim.plugins = { + rustaceanvim.enable = true; - servers = { - ts_ls.enable = true; # TS/JS - cssls.enable = true; # CSS - html.enable = true; # HTML - pyright.enable = true; # Python - marksman.enable = true; # Markdown - nil_ls.enable = true; # Nix - dockerls.enable = true; # Docker - bashls.enable = true; # Bash - clangd.enable = true; # C/C++ - yamlls.enable = true; # YAML + lsp = { + enable = true; + inlayHints = true; - lua_ls = { - # Lua - enable = true; - settings.telemetry.enable = false; + servers = { + ts_ls.enable = true; # TS/JS + cssls.enable = true; # CSS + html.enable = true; # HTML + pyright.enable = true; # Python + marksman.enable = true; # Markdown + nil_ls.enable = true; # Nix + dockerls.enable = true; # Docker + bashls.enable = true; # Bash + clangd.enable = true; # C/C++ + yamlls.enable = true; # YAML + + lua_ls = { + # Lua + enable = true; + settings.telemetry.enable = false; + }; }; }; };