summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-08 21:15:34 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-08 21:15:34 +0200
commit44eaadfc6866da2c39333ab937a92383f54fc83a (patch)
tree084d405d490bac57fd803db148d9b37f08194359 /.config/nvim
parent4778a88d7a8ca2b56965bbe473263aeaecbd77f6 (diff)
Add vim-rooter
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/config.lua2
-rw-r--r--.config/nvim/lua/plugins.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/config.lua b/.config/nvim/config.lua
index e82c3c8..c02f041 100644
--- a/.config/nvim/config.lua
+++ b/.config/nvim/config.lua
@@ -20,7 +20,7 @@ O.plugin.telescope_fzy.active = true
O.plugin.trouble.active = true
O.plugin.ts_autotag.active = true
O.plugin.zen.active = true
-O.plugin.vim_rooter.active = false
+O.plugin.vim_rooter.active = true
-- if you don't want all the parsers change this to a table of the ones you want
O.treesitter.ensure_installed = "all"
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index 1e34627..d94611b 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -304,7 +304,7 @@ return require("packer").startup(function(use)
-- vim rooter for projects
use {
"airblade/vim-rooter",
- event = "BufRead",
+ event = "BufWinEnter",
disable = not O.plugin.vim_rooter.active,
}