✨ feat(nvim): custom root dir detection option added
This commit is contained in:
parent
9cdfa0bacb
commit
ce28b7659f
1 changed files with 7 additions and 0 deletions
|
@ -25,3 +25,10 @@ o.editorconfig = true
|
|||
for _, provider in ipairs({ "node", "perl", "python3", "ruby" }) do
|
||||
vim.g["loaded_" .. provider .. "_provider"] = 0
|
||||
end
|
||||
|
||||
-- Root dir detection
|
||||
vim.g.root_spec = {
|
||||
"lsp",
|
||||
{ ".git", "lua", ".obsidian", "package.json", "Makefile", "go.mod", "cargo.toml", "pyproject.toml", "src" },
|
||||
"cwd",
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue