chore: A bunch of things I don't even remeber
This commit is contained in:
parent
b2f76df527
commit
a528a8e1fc
6 changed files with 25 additions and 19 deletions
|
@ -1,4 +1,11 @@
|
|||
|
||||
local mason_lspconfig = require "mason-lspconfig"
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = { "sumneko_lua", "rust_analyzer" , "texlab", "hls"},
|
||||
automatic_installation = true
|
||||
})
|
||||
|
||||
local opts = { noremap=true, silent=true }
|
||||
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, opts)
|
||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts)
|
||||
|
@ -37,3 +44,15 @@ local on_attach = function(client, bufnr)
|
|||
-- })
|
||||
end
|
||||
|
||||
local lspconfig = require "lspconfig"
|
||||
|
||||
mason_lspconfig.setup_handlers {
|
||||
|
||||
-- This is a default handler that will be called for each installed server (also for new servers that are installed during a session)
|
||||
function (server_name)
|
||||
lspconfig[server_name].setup {
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
local mason_lspconfig = require "mason-lspconfig"
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = { "sumneko_lua", "rust_analyzer" , "texlab", "hls"},
|
||||
automatic_installation = true
|
||||
})
|
||||
|
||||
local lspconfig = require "lspconfig"
|
||||
|
||||
mason_lspconfig.setup_handlers {
|
||||
|
||||
-- This is a default handler that will be called for each installed server (also for new servers that are installed during a session)
|
||||
function (server_name)
|
||||
lspconfig[server_name].setup {
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
}
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue