From 37bc89fe358e608c85b5e6f18cbcb37eac2f63be Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Tue, 3 Jun 2025 09:06:39 +0200 Subject: [PATCH] [LSP] Add rust LS --- nvim/lua/plugins/lsp/lspconfig.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/nvim/lua/plugins/lsp/lspconfig.lua b/nvim/lua/plugins/lsp/lspconfig.lua index deb4f36..ed4667b 100755 --- a/nvim/lua/plugins/lsp/lspconfig.lua +++ b/nvim/lua/plugins/lsp/lspconfig.lua @@ -14,8 +14,8 @@ return { -- import cmp-nvim-lsp plugin local cmp_nvim_lsp = require("cmp_nvim_lsp") - local capabilities = require('lsp-options').capabilities - local on_attach = require('lsp-options').on_attach + local capabilities = require("lsp-options").capabilities + local on_attach = require("lsp-options").on_attach -- Change the Diagnostic symbols in the sign column (gutter) local signs = { Error = "󰅚 ", Warn = "󰀪 ", Hint = "󰌶", Info = "󰋽 " } @@ -46,6 +46,19 @@ return { on_attach = on_attach, }) + -- ┌ ┐ + -- │ Rust │ + -- └ ┘ + vim.lsp.config("rust_analyzer", { + settings = { + ["rust-analyzer"] = { + diagnostics = { + enable = false, + }, + }, + }, + }) + -- ┌ ┐ -- │ HTML, CSS, JSON │ -- └ ┘