I cannot believe that it took this long to write a test for this.

This commit is contained in:
2025-11-16 19:27:56 +02:00
parent 38bddf66fb
commit 19f809aaf8

View File

@@ -8,7 +8,7 @@ return {
},
config = function()
-- Import lspconfig plugin
local lspconfig = require('lspconfig')
local lspconfig = vim.lsp.config
-- Import cmp_nvim_lsp plugin
local cmp_nvim_lsp = require('cmp_nvim_lsp')
-- Set options
@@ -129,16 +129,23 @@ return {
}
local lspsetup = function(server, config)
lspconfig[server].setup({
lspconfig[server] = {
handlers = handlers,
on_attach = on_attach,
flags = lsp_flags,
settings = config,
})
}
vim.lsp.enable(server)
end
local simple_servers = {
-- Configure bash language server
lspsetup("bashls")
"bashls",
}
for _, server in ipairs(simple_servers) do
lspsetup(server)
end
local lua_config = {
Lua = {