diff options
| -rw-r--r-- | lua/lspconfig/server_configurations/purescriptls.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/purescriptls.lua b/lua/lspconfig/server_configurations/purescriptls.lua index a7913ccf..baed5045 100644 --- a/lua/lspconfig/server_configurations/purescriptls.lua +++ b/lua/lspconfig/server_configurations/purescriptls.lua @@ -4,7 +4,14 @@ return { default_config = { cmd = { 'purescript-language-server', '--stdio' }, filetypes = { 'purescript' }, - root_dir = util.root_pattern('bower.json', 'psc-package.json', 'spago.dhall', 'flake.nix', 'shell.nix'), + root_dir = util.root_pattern( + 'bower.json', + 'flake.nix', + 'psc-package.json', + 'shell.nix', + 'spago.dhall', + 'spago.yaml' + ), }, docs = { description = [[ @@ -16,7 +23,7 @@ The `purescript-language-server` can be added to your project and `$PATH` via * Nix under the `nodePackages` and `nodePackages_latest` package sets ]], default_config = { - root_dir = [[root_pattern('spago.dhall', 'psc-package.json', 'bower.json', 'flake.nix', 'shell.nix'),]], + root_dir = [[root_pattern('bower.json', 'flake.nix', 'psc-package.json', 'shell.nix', 'spago.dhall', 'spago.yaml'),]], }, }, } |
