1
0
Fork 0
forked from ahurac/dotfiles

Ajout : fichier de configuration pour le LSP

Première version avec inclusion de rust-analyzer qui sera modularisé par
la suite
This commit is contained in:
Hippolyte Chauvin 2023-10-15 16:07:46 +02:00
parent d2fd114995
commit ec5fd3cb6a

View file

@ -0,0 +1,28 @@
local nvim_lsp = require'lspconfig'
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
},
}
}
})