disable all-targets for rust analyzer, enbale procmacros
This commit is contained in:
parent
ce87744a47
commit
e8851ec1cb
1 changed files with 15 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue