aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorAleš Brelih <ales.brelih@3fs.si>2025-08-22 04:14:23 +0200
committerGitHub <noreply@github.com>2025-08-21 19:14:23 -0700
commit1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5 (patch)
tree03cb2cafe10c621f9cdbd4badc602f2100020677 /lua
parentfix(ts/js): support older Nvim 0.11.x (diff)
downloadnvim-lspconfig-1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5.tar
nvim-lspconfig-1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5.tar.gz
nvim-lspconfig-1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5.tar.bz2
nvim-lspconfig-1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5.tar.lz
nvim-lspconfig-1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5.tar.xz
nvim-lspconfig-1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5.tar.zst
nvim-lspconfig-1c505a2a37c7732fb2a7e290c0f822abfb2ba1c5.zip
fix(gitlab_ls): root dir ordering #4025
Problem: If project had a nested child gitlab file named: .gitlab-ci.yml it would take it as root. Solution: If inside GIT repository just use git repository root as root and still keep the option for .gitlab* as fallback if there is no git repo yet.
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/gitlab_ci_ls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/gitlab_ci_ls.lua b/lua/lspconfig/configs/gitlab_ci_ls.lua
index e780f1b3..059aaf46 100644
--- a/lua/lspconfig/configs/gitlab_ci_ls.lua
+++ b/lua/lspconfig/configs/gitlab_ci_ls.lua
@@ -5,7 +5,7 @@ return {
default_config = {
cmd = { 'gitlab-ci-ls' },
filetypes = { 'yaml.gitlab' },
- root_dir = util.root_pattern('.gitlab*', '.git'),
+ root_dir = util.root_pattern('.git', '.gitlab*'),
init_options = {
cache_path = cache_dir,
log_path = cache_dir .. '/log/gitlab-ci-ls.log',