languages/haskell: share common lsp configuration

Some of the LSP configuration is common for both
`haskell-tools` and `hls`. Make them consistent with
attrset updates.
This commit is contained in:
siggsy 2025-10-19 14:51:54 +02:00
commit 2a21c8570e

View file

@ -19,10 +19,7 @@
cfg = config.vim.languages.haskell; cfg = config.vim.languages.haskell;
defaultServers = ["hls"]; defaultServers = ["hls"];
servers = { serverCommon = {
hls = {
enable = true;
cmd = [ "haskell-language-server-wrapper" "--lsp" ];
filetypes = ["haskell" "lhaskell"]; filetypes = ["haskell" "lhaskell"];
root_dir = root_dir =
mkLuaInline mkLuaInline
@ -36,9 +33,18 @@
end end
''; '';
}; };
servers = {
haskell-tools = { hls =
serverCommon
// {
enable = true; enable = true;
cmd = ["haskell-language-server-wrapper" "--lsp"];
};
haskell-tools =
serverCommon
// {
enable = false;
on_attach = on_attach =
mkLuaInline mkLuaInline
/* /*