aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/robotcode.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-12-13 14:53:08 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-12-14 17:24:12 +0100
commit12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2 (patch)
tree0bfbfbd378ba61cde77f9132b6d0c3570805eb88 /lua/lspconfig/configs/robotcode.lua
parentdocs: how to get package.json parent dir #3506 (diff)
downloadnvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar
nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.gz
nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.bz2
nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.lz
nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.xz
nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.tar.zst
nvim-lspconfig-12d163c5c2b05e85431f2deef5d9d59a8fd8dfc2.zip
refactor: deprecate util.find_git_ancestor
Work on https://github.com/neovim/nvim-lspconfig/issues/2079.
Diffstat (limited to 'lua/lspconfig/configs/robotcode.lua')
-rw-r--r--lua/lspconfig/configs/robotcode.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/configs/robotcode.lua b/lua/lspconfig/configs/robotcode.lua
index 95dc86e2..79f3337b 100644
--- a/lua/lspconfig/configs/robotcode.lua
+++ b/lua/lspconfig/configs/robotcode.lua
@@ -17,7 +17,7 @@ https://robotcode.io
RobotCode - Language Server Protocol implementation for Robot Framework.
]],
default_config = {
- root_dir = "util.root_pattern('robot.toml', 'pyproject.toml', 'Pipfile')(fname) or util.find_git_ancestor(fname)",
+ root_dir = "util.root_pattern('robot.toml', 'pyproject.toml', 'Pipfile')(fname) or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])",
settings = {},
},
},