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 3be72c24bc
commit a774955f40
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",
}
+6
View File
@@ -0,0 +1,6 @@
return {
"LazyVim/LazyVim",
opts = {
colorscheme = "catppuccin",
},
}
@@ -1,6 +1,8 @@
return {
"epwalsh/obsidian.nvim",
ft = "markdown",
event = {
"BufReadPre " .. vim.fn.expand("~") .. "/Documentos/Obsidian/obsidianVault/**.md",
},
keys = {
{
"gf",
@@ -19,6 +21,7 @@ return {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
"nvim-telescope/telescope.nvim",
"nvim-treesitter/nvim-treesitter",
},
opts = {
workspaces = {
@@ -0,0 +1,5 @@
return {
"dgagn/diagflow.nvim",
event = "LspAttach",
opts = {},
}