blob: e87c2be39d0e4d6275890940b74be72cccf55297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
local lspconfig = require("lspconfig")
local cmp_nvim_lsp = require("cmp_nvim_lsp")
local cmp_default_caps = cmp_nvim_lsp.default_capabilities()
local lspconfig_default_caps = lspconfig.util.default_config.capabilities
lspconfig.util.default_config = vim.tbl_extend(
"force",
lspconfig.util.default_config,
{
capabilities = vim.tbl_extend("force", lspconfig_default_caps, cmp_default_caps),
autostart = false,
})
local function setup()
lspconfig.cmake.setup {}
lspconfig.bashls.setup {}
require("setup.lsp.clangd").setup()
require("setup.lsp.lua_ls").setup()
end
return {
setup = setup
}
|