fix(haskell): prevent mason-lspconfig from starting hls

This commit is contained in:
Shina 2026-04-30 20:24:44 +09:00
parent 7c1301b895
commit dbba6e31f8

View file

@ -50,11 +50,6 @@ return {
}, },
}, },
{
"mason-org/mason.nvim",
opts = { ensure_installed = { "haskell-language-server" } },
},
{ {
"mfussenegger/nvim-dap", "mfussenegger/nvim-dap",
optional = true, optional = true,
@ -132,13 +127,22 @@ return {
haskell = { "hlint" }, haskell = { "hlint" },
}, },
}, },
dependencies = {
{
"mason-org/mason.nvim",
opts = { ensure_installed = { "hlint" } },
},
},
}, },
-- Make sure lspconfig doesn't start hls, -- Make sure neither lspconfig nor mason-lspconfig starts hls,
-- as it conflicts with haskell-tools -- as it conflicts with haskell-tools
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
opts = { opts = {
servers = {
hls = {},
},
setup = { setup = {
hls = function() hls = function()
return true return true