mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-09 06:55:30 +00:00
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:
parent
e3ddf6de6a
commit
2a21c8570e
1 changed files with 44 additions and 38 deletions
|
|
@ -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
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue