Add rust_analyzer

This commit is contained in:
Anthony Rose 2024-04-06 14:43:26 +01:00
parent 457cb42dc7
commit 7fd66876b9

View file

@ -4,12 +4,14 @@ vim.opt.number = true
vim.opt.numberwidth = 8 vim.opt.numberwidth = 8
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
lspconfig.clangd.setup {} lspconfig.clangd.setup {}
lspconfig.cmake.setup {} lspconfig.cmake.setup {}
lspconfig.gopls.setup {} lspconfig.gopls.setup {}
lspconfig.ltex.setup {} lspconfig.ltex.setup {}
lspconfig.omnisharp.setup {} lspconfig.omnisharp.setup {}
lspconfig.rls.setup {} lspconfig.rls.setup {}
lspconfig.rust_analyzer.setup {}
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float) vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)