mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-12 08:50:30 -07:00
[wip] rebuild from scratch
This commit is contained in:
parent
5c607d047b
commit
91ba5541a3
35 changed files with 473 additions and 485 deletions
23
lua/after/lsp.lua
Normal file
23
lua/after/lsp.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
local lsp_zero = require('lsp-zero')
|
||||
|
||||
lsp_zero.on_attach(function(client, bufnr)
|
||||
-- see :help lsp-zero-keybindings
|
||||
-- to learn the available actions
|
||||
lsp_zero.default_keymaps({buffer = bufnr})
|
||||
end)
|
||||
|
||||
-- here you can setup the language servers
|
||||
require('mason').setup({})
|
||||
require('mason-lspconfig').setup({
|
||||
ensure_installed = {
|
||||
'tsserver',
|
||||
'rust_analyzer',
|
||||
'gopls',
|
||||
'clangd',
|
||||
}
|
||||
handlers = {
|
||||
function(server_name)
|
||||
require('lspconfig')[server_name].setup({})
|
||||
end,
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue