Added rust_analyzer

This commit is contained in:
2024-04-28 21:14:48 +02:00
parent fa5841057d
commit 14225a0d7c
2 changed files with 4 additions and 1 deletions

View File

@ -207,7 +207,7 @@ local handlers = {
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman' }
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls', 'tflint', 'marksman', 'rust_analyzer' }
for _, lsp in pairs(servers) do
require('lspconfig')[lsp].setup {
on_attach = on_attach,
@ -340,6 +340,8 @@ require("nvim-tree").setup({
require'treesitter-context'.setup{}
require("nvim-autopairs").setup {}
require'lspconfig'.rust_analyzer.setup {}
EOF
" Added popout window to see diagnostic