Add rust_analyzer
This commit is contained in:
parent
457cb42dc7
commit
7fd66876b9
1 changed files with 2 additions and 0 deletions
2
init.lua
2
init.lua
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue