feat(neovim): improve rust-analyzer lsp config
It did not pick up `Cargo.toml` in subdirectories before.
This commit is contained in:
parent
1fa4f85c5d
commit
3f4b377a71
|
@ -57,7 +57,6 @@ local servers = {
|
|||
"pylsp",
|
||||
"terraformls",
|
||||
"hls",
|
||||
"rust_analyzer",
|
||||
"vimls",
|
||||
"glslls",
|
||||
}
|
||||
|
@ -68,6 +67,11 @@ for _, lsp in ipairs(servers) do
|
|||
}
|
||||
end
|
||||
|
||||
config.rust_analyzer.setup{
|
||||
capabilities = capabilities,
|
||||
root_dir = config.util.root_pattern("Cargo.toml", "rust-project.json", ".git"),
|
||||
}
|
||||
|
||||
config.omnisharp.setup{
|
||||
capabilities = capabilities,
|
||||
cmd = {"omnisharp", "--languageserver", "--hostPID", tostring(pid)},
|
||||
|
|
Loading…
Reference in a new issue