summaryrefslogtreecommitdiff
path: root/lua/plugins/fugitive.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/fugitive.lua')
-rw-r--r--lua/plugins/fugitive.lua19
1 files changed, 11 insertions, 8 deletions
diff --git a/lua/plugins/fugitive.lua b/lua/plugins/fugitive.lua
index ce5e173..bbb5ef8 100644
--- a/lua/plugins/fugitive.lua
+++ b/lua/plugins/fugitive.lua
@@ -4,14 +4,17 @@ return {
dependencies = "tpope/vim-rhubarb",
config = function()
- local handle = io.popen('git rev-parse --is-inside-work-tree 2> /dev/null')
- if handle then
- local result = handle:read('*a')
- handle:close()
- if result and result:match('true') then
- vim.cmd([[Gcd]])
- end
- end
+ -- The following seems to break harpoon
+ -- it's supposed to auto-cd to the git root on vim startup
+
+ -- local handle = io.popen('git rev-parse --is-inside-work-tree 2> /dev/null')
+ -- if handle then
+ -- local result = handle:read('*a')
+ -- handle:close()
+ -- if result and result:match('true') then
+ -- vim.cmd([[Gcd]])
+ -- end
+ -- end
end,
-- Only load when using one of the following commands: