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;
defaultServers = ["hls"];
servers = {
hls = {
enable = true;
cmd = [ "haskell-language-server-wrapper" "--lsp" ];
serverCommon = {
filetypes = ["haskell" "lhaskell"];
root_dir =
mkLuaInline
@ -36,9 +33,18 @@
end
'';
};
haskell-tools = {
servers = {
hls =
serverCommon
// {
enable = true;
cmd = ["haskell-language-server-wrapper" "--lsp"];
};
haskell-tools =
serverCommon
// {
enable = false;
on_attach =
mkLuaInline
/*