We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
root_dir
1 parent 3b60036 commit c8de780Copy full SHA for c8de780
lua/astrocore/rooter.lua
@@ -46,6 +46,7 @@ function M.detectors.lsp(config)
46
-- TODO: remove when dropping support for Neovim v0.9
47
for _, client in ipairs((vim.lsp.get_clients or vim.lsp.get_active_clients) { buffer = bufnr }) do
48
if not server_filter or not server_filter(client) then
49
+ if client.root_dir then table.insert(roots, client.root_dir) end
50
vim.tbl_map(
51
function(ws) table.insert(roots, vim.uri_to_fname(ws.uri)) end,
52
client.config.workspace_folders or {}
0 commit comments