[LSP] Add rust LS

This commit is contained in:
2025-06-03 09:06:39 +02:00
parent c63aa24fa9
commit 37bc89fe35

View File

@@ -14,8 +14,8 @@ return {
-- import cmp-nvim-lsp plugin -- import cmp-nvim-lsp plugin
local cmp_nvim_lsp = require("cmp_nvim_lsp") local cmp_nvim_lsp = require("cmp_nvim_lsp")
local capabilities = require('lsp-options').capabilities local capabilities = require("lsp-options").capabilities
local on_attach = require('lsp-options').on_attach local on_attach = require("lsp-options").on_attach
-- Change the Diagnostic symbols in the sign column (gutter) -- Change the Diagnostic symbols in the sign column (gutter)
local signs = { Error = "󰅚 ", Warn = "󰀪 ", Hint = "󰌶", Info = "󰋽 " } local signs = { Error = "󰅚 ", Warn = "󰀪 ", Hint = "󰌶", Info = "󰋽 " }
@@ -46,6 +46,19 @@ return {
on_attach = on_attach, on_attach = on_attach,
}) })
-- ┌ ┐
-- │ Rust │
-- └ ┘
vim.lsp.config("rust_analyzer", {
settings = {
["rust-analyzer"] = {
diagnostics = {
enable = false,
},
},
},
})
-- ┌ ┐ -- ┌ ┐
-- │ HTML, CSS, JSON │ -- │ HTML, CSS, JSON │
-- └ ┘ -- └ ┘