You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
537 B
Lua
23 lines
537 B
Lua
local on_attach = require'keybindings'.on_attach
|
|
local capabilities = require'cmp_nvim_lsp'.update_capabilities(vim.lsp.protocol.make_client_capabilities())
|
|
local cmp = require'nvim-cmp-cfg'.cmp
|
|
|
|
-- SERVERS
|
|
-- rust_analyzer
|
|
vim.g.rustfmt_autosave = 1
|
|
require'lspconfig'.rust_analyzer.setup{
|
|
on_attach = on_attach,
|
|
capabilities = capabilities,
|
|
settings = {
|
|
["rust-analyzer"] = {
|
|
procMacro = {
|
|
enable = true,
|
|
},
|
|
checkOnSave = {
|
|
command = 'clippy',
|
|
extraArgs = { "--", "-W", "clippy::pedantic" }
|
|
},
|
|
}
|
|
}
|
|
}
|