1
0
Fork 0
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:
Mo 2022-10-09 14:48:22 +02:00
parent b5a1a53e8f
commit a7c87991bf

View file

@ -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,
})