1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/config/nvim/lua/lsp/rust.lua
2023-10-26 18:25:45 +02:00

25 lines
560 B
Lua

local on_attach = function(client)
require'completion'.on_attach(client)
end
nvim_lsp.rust_analyzer.setup({
on_attach=on_attach,
settings = {
["rust-analyzer"] = {
imports = {
granularity = {
group = "module",
},
prefix = "self",
},
cargo = {
buildScripts = {
enable = true,
},
},
procMacro = {
enable = true
},
}
}
})