diff options
| author | klausweiss <mbiel@mailbox.org> | 2024-02-23 06:34:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-23 13:34:16 +0800 |
| commit | 58310212b8aad3d53e7182437f4425491fe16418 (patch) | |
| tree | 3c0bc4f463718bc8d20e620d8479bc2b9f960b83 /lua/lspconfig/server_configurations/purescriptls.lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-58310212b8aad3d53e7182437f4425491fe16418.tar nvim-lspconfig-58310212b8aad3d53e7182437f4425491fe16418.tar.gz nvim-lspconfig-58310212b8aad3d53e7182437f4425491fe16418.tar.bz2 nvim-lspconfig-58310212b8aad3d53e7182437f4425491fe16418.tar.lz nvim-lspconfig-58310212b8aad3d53e7182437f4425491fe16418.tar.xz nvim-lspconfig-58310212b8aad3d53e7182437f4425491fe16418.tar.zst nvim-lspconfig-58310212b8aad3d53e7182437f4425491fe16418.zip | |
fix(purescript-language-server): add 'spago.yaml' to the list of root_patterns (#3022)
Diffstat (limited to 'lua/lspconfig/server_configurations/purescriptls.lua')
| -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'),]], }, }, } |
