mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-08 22:45: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;
|
||||
|
||||
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
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue