fix: apply new lspconfig API
This commit is contained in:
@@ -12,22 +12,21 @@ return {
|
||||
}
|
||||
},
|
||||
config = function(_, opts)
|
||||
local lspconfig = require('lspconfig')
|
||||
for server, config in pairs(opts.servers) do
|
||||
-- passing config.capabilities to blink.cmp merges with the capabilities in your
|
||||
-- `opts[server].capabilities, if you've defined it
|
||||
config.capabilities = require('blink.cmp').get_lsp_capabilities(config.capabilities)
|
||||
lspconfig[server].setup(config)
|
||||
vim.lsp.config(server, config)
|
||||
end
|
||||
|
||||
local capabilities = require('blink.cmp').get_lsp_capabilities()
|
||||
|
||||
lspconfig['clangd'].setup({
|
||||
vim.lsp.config("ts_ls", {
|
||||
capabilities = capabilities,
|
||||
cmd = { vim.fn.stdpath("config") .. "/shell/clangd-direnv.sh" }
|
||||
})
|
||||
|
||||
lspconfig.hls.setup({
|
||||
vim.lsp.config("hls", {
|
||||
capabilities = capabilities,
|
||||
filetypes = { 'haskell', 'lhaskell' },
|
||||
cmd = { "haskell-language-server-wrapper", "--lsp" },
|
||||
|
||||
Reference in New Issue
Block a user