disable all-targets for rust analyzer, enbale procmacros

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-30 19:14:29 +01:00
parent ce87744a47
commit e8851ec1cb
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -38,14 +38,18 @@ end
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { 'rust_analyzer' }
for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup {
require('lspconfig')[lsp].setup {
on_attach = on_attach,
flags = {
-- This will be the default in neovim 0.7+
debounce_text_changes = 150,
settings = {
["rust-analyzer"] = {
checkOnSave = {
allTargets = false,
command = "clippy",
},
procMacro = {
enable = true
}
}
},
capabilities = capabilities
}
end
}