feat(nvim): custom root dir detection option added
This commit is contained in:
1 parent
3be72c24bc
commit
a774955f40
5 files changed
+22
-1
No files matched your search
@@ -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",
|
||||
}
|
||||
@@ -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 = {},
|
||||
}
|
||||
File renamed without changes.
Reference in new issue
Block a user