From a514903307a35963ede428b565ea499861839ef1 Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Sun, 9 Oct 2022 23:45:18 +0200 Subject: nvim: fugitive better git repo detection --- .config/nvim/lua/setup/fugitive.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .config/nvim/lua/setup/fugitive.lua (limited to '.config/nvim/lua/setup') diff --git a/.config/nvim/lua/setup/fugitive.lua b/.config/nvim/lua/setup/fugitive.lua new file mode 100644 index 0000000..b48b4a9 --- /dev/null +++ b/.config/nvim/lua/setup/fugitive.lua @@ -0,0 +1,6 @@ +vim.cmd([[ +silent !in-git-repo +if v:shell_error + call FugitiveDetect('~/.cfg') +endif +]]) -- cgit v1.2.3-70-g09d2