summaryrefslogtreecommitdiff
path: root/lua/core/rooter.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-08-11 16:33:41 -0400
committerchristianchiarulli <[email protected]>2021-08-11 16:33:41 -0400
commit83013c0d4f1467f546c38719c61909decfcb8151 (patch)
tree143773ea73c64d953db699e6e621926e44653fc2 /lua/core/rooter.lua
parentf6407e0bdb9c2875bc8f186929ce183af391b2a9 (diff)
parent5a7630cac761e91335d2f25cb07a81271569c791 (diff)
Merge branch 'rolling' of github.com:ChristianChiarulli/LunarVim
Diffstat (limited to 'lua/core/rooter.lua')
-rw-r--r--lua/core/rooter.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/core/rooter.lua b/lua/core/rooter.lua
new file mode 100644
index 00000000..8ebdf7cc
--- /dev/null
+++ b/lua/core/rooter.lua
@@ -0,0 +1,15 @@
+local M = {}
+function M.config()
+ lvim.builtin.rooter = {
+ --- This is on by default since it's currently the expected behavior.
+ ---@usage set to false to disable vim-rooter.
+ active = true,
+ silent_chdir = 1,
+ manual_only = 0,
+ }
+end
+function M.setup()
+ vim.g.rooter_silent_chdir = lvim.builtin.rooter.silent_chdir
+ vim.g.rooter_manual_only = lvim.builtin.rooter.manual_only
+end
+return M