[vim] Add rust-analyzer LSP
This commit is contained in:
parent
a6a4aa0d90
commit
5631eb2c88
1 changed files with 18 additions and 0 deletions
|
@ -97,6 +97,24 @@ lspconfig.pyright.setup {
|
||||||
capabilities = cmp_capabilities,
|
capabilities = cmp_capabilities,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lspconfig.rust_analyzer.setup {
|
||||||
|
on_attach = function(client, buffer_number)
|
||||||
|
print("rust-analyzer on attach")
|
||||||
|
on_attach(client, buffer_number)
|
||||||
|
vim.lsp.inlay_hint.enable(buffer_number)
|
||||||
|
end,
|
||||||
|
capabilities = cmp_capabilities,
|
||||||
|
settings = {
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
cargo = {
|
||||||
|
buildScripts = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
lspconfig.tailwindcss.setup {
|
lspconfig.tailwindcss.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = cmp_capabilities,
|
capabilities = cmp_capabilities,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue