fix(lang/haskell): Better way to disable nvim-lspconfig

Starting with v6.2.1 haskell-tools.nvim had issues to calculate the
correct count of attached clients (result was always 0). This broke the
state machine which decides which commands to allow (`Hls start` vs.
`Hls restart` and `Hls stop`).

This is fixed by disabling the HLS server setup in nvim-lspconfig.
Morally, the intention of the code hasn't changed. However, this way of
disabling HLS solves the mentioned issue.
This commit is contained in:
Sven Tennie 2026-01-24 15:54:09 +01:00
parent c64a61734f
commit d15e8c3294
No known key found for this signature in database

View file

@ -139,11 +139,7 @@ return {
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
opts = { opts = {
setup = { servers = { hls = { enabled = false } },
hls = function()
return true
end,
},
}, },
}, },
} }