Skip to content

Commit 8b0d713

Browse files
authored
feat!(lsp): use vim.lsp.config['haskell-tools'] to fix conflict with nvim-lspconfig (#466)
Closes #465. nvim-lspconfig has a `lsp/hls.lua` file that automatically gets sourced and causes this plugin's config to be overridden. Instead of using `vim.lsp.config['hls']`, this plugin now uses `vim.lsp.config['haskell-tools']` to avoid this conflict.
1 parent fda0e50 commit 8b0d713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/haskell-tools/lsp/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Hls.start = function(bufnr)
171171
fix_cabal_client(client)
172172
end,
173173
}
174-
local client_config = vim.tbl_deep_extend('force', {}, lsp_start_opts, vim.lsp.config['hls'] or {})
174+
local client_config = vim.tbl_deep_extend('force', {}, lsp_start_opts, vim.lsp.config['haskell-tools'] or {})
175175
local client_id = vim.lsp.start(client_config)
176176
return client_id
177177
end

0 commit comments

Comments
 (0)