mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-04 23:40:32 +00:00
Add rust_analyzer
This commit is contained in:
parent
b5a1a53e8f
commit
a7c87991bf
1 changed files with 8 additions and 3 deletions
|
@ -46,17 +46,22 @@ local function on_attach_with_formatting(client, bufnr)
|
|||
format_on_save(client, bufnr)
|
||||
end
|
||||
|
||||
lspconfig["pylsp"].setup({
|
||||
lspconfig.pylsp.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach_without_formatting,
|
||||
})
|
||||
|
||||
lspconfig["julials"].setup({
|
||||
lspconfig.julials.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach_with_formatting,
|
||||
})
|
||||
|
||||
lspconfig["clangd"].setup({
|
||||
lspconfig.clangd.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach_with_formatting,
|
||||
})
|
||||
|
||||
lspconfig.rust_analyzer.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach_with_formatting,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue