diff --git a/nvim/after/plugin/lsp.lua b/nvim/after/plugin/lsp.lua index 6c5cb44..4db0adf 100644 --- a/nvim/after/plugin/lsp.lua +++ b/nvim/after/plugin/lsp.lua @@ -22,6 +22,24 @@ lsp.configure('lua-language-server', { } }) +lsp.configure('rust_analyzer', { + settings = { + ["rust-analyzer"] = { + diagnostics = { + enable = true + }, + checkOnSave = { + enable = true + }, + procMacro = { + enable = true + }, + cargo = { + allFeatures = true + } + } + } +}) local cmp = require('cmp') local cmp_select = {behavior = cmp.SelectBehavior.Select}