From 5aa0b750f5179282ef99f04d17ad99d7da93f512 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 23 Apr 2025 04:48:12 -0700 Subject: ci(lint): deprecate util.path.is_descendant() on Nvim 0.11+ #3766 --- lsp/rust_analyzer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsp/rust_analyzer.lua') diff --git a/lsp/rust_analyzer.lua b/lsp/rust_analyzer.lua index ada5243d..aaa618c3 100644 --- a/lsp/rust_analyzer.lua +++ b/lsp/rust_analyzer.lua @@ -47,7 +47,7 @@ local function is_library(fname) local toolchains = rustup_home .. '/toolchains' for _, item in ipairs { toolchains, registry, git_registry } do - if util.path.is_descendant(item, fname) then + if vim.fs.relpath(item, fname) then local clients = vim.lsp.get_clients { name = 'rust_analyzer' } return #clients > 0 and clients[#clients].config.root_dir or nil end -- cgit v1.2.3-70-g09d2