From 58310212b8aad3d53e7182437f4425491fe16418 Mon Sep 17 00:00:00 2001 From: klausweiss Date: Fri, 23 Feb 2024 06:34:16 +0100 Subject: fix(purescript-language-server): add 'spago.yaml' to the list of root_patterns (#3022) --- lua/lspconfig/server_configurations/purescriptls.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lua/lspconfig/server_configurations/purescriptls.lua') 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'),]], }, }, } -- cgit v1.2.3-70-g09d2