From 437d96a6059ae6a6886565cfd3cb5ba9dc556676 Mon Sep 17 00:00:00 2001 From: serxoz Date: Wed, 17 Apr 2024 17:59:17 +0200 Subject: [PATCH] configuracion para rust_analyzer --- nvim/after/plugin/lsp.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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}