From d15e8c32941850c67e04396008c68f1e1873bbcc Mon Sep 17 00:00:00 2001 From: Sven Tennie Date: Sat, 24 Jan 2026 15:54:09 +0100 Subject: [PATCH] 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. --- lua/lazyvim/plugins/extras/lang/haskell.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/haskell.lua b/lua/lazyvim/plugins/extras/lang/haskell.lua index cf4f3db6..9dae7b87 100644 --- a/lua/lazyvim/plugins/extras/lang/haskell.lua +++ b/lua/lazyvim/plugins/extras/lang/haskell.lua @@ -139,11 +139,7 @@ return { { "neovim/nvim-lspconfig", opts = { - setup = { - hls = function() - return true - end, - }, + servers = { hls = { enabled = false } }, }, }, }