diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-04-23 04:48:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-23 04:48:12 -0700 |
| commit | 5aa0b750f5179282ef99f04d17ad99d7da93f512 (patch) | |
| tree | e3b2e4aebe73de9151b294a905bf26787e63d1fa /lsp/phpactor.lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.gz nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.bz2 nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.lz nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.xz nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.tar.zst nvim-lspconfig-5aa0b750f5179282ef99f04d17ad99d7da93f512.zip | |
ci(lint): deprecate util.path.is_descendant() on Nvim 0.11+ #3766
Diffstat (limited to 'lsp/phpactor.lua')
| -rw-r--r-- | lsp/phpactor.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp/phpactor.lua b/lsp/phpactor.lua index 638cf217..87e6c59d 100644 --- a/lsp/phpactor.lua +++ b/lsp/phpactor.lua @@ -11,10 +11,10 @@ return { filetypes = { 'php' }, root_dir = function(bufnr, on_dir) local fname = vim.api.nvim_buf_get_name(bufnr) - local cwd = vim.uv.cwd() + local cwd = assert(vim.uv.cwd()) local root = util.root_pattern('composer.json', '.git', '.phpactor.json', '.phpactor.yml')(fname) -- prefer cwd if root is a descendant - on_dir(util.path.is_descendant(cwd, root) and cwd or root) + on_dir(vim.fs.relpath(cwd, root) and cwd or root) end, } |
