feat(nvim): custom root dir detection option added

This commit is contained in:
sankalp committed 2024-02-26 18:34:22 +05:45
1 parent ec912c4ca5
commit b1fd7bff19
5 files changed
+22 -1

No files matched your search

+7
View File
@@ -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",
}