nvim: lua: nvim_lsp: hls: Do not start unless hie.yaml is found

Do not start haskell-language-server unless a hie.yaml file is present
for proper multi-component support.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-06-09 17:10:09 +05:30
parent 690a1bdae8
commit ebd1bd566b

View file

@ -5,7 +5,7 @@ configs.hls = {
default_config = {
cmd = { "haskell-language-server-wrapper", "--lsp" };
filetypes = { "haskell" };
root_dir = util.root_pattern("stack.yaml", "package.yaml", ".git");
root_dir = util.root_pattern("hie.yaml");
};
};