Skip to content

Commit

Permalink
[nvim] disable gitsigns in fugitive virtual file buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitmel committed Jan 14, 2022
1 parent 7cb80b5 commit a1d6acb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nvim/plugin/git.vim
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ if dotfiles#plugman#is_registered('gitsigns.nvim') " {{{
-- Disable the default mappings, we will define our own, and via the
-- intended way.
keymaps = {},
on_attach = function(bufnr)
local bufname = vim.api.nvim_buf_get_name(bufnr)
if bufname:match('^fugitive:') then
return false
end
end,
})
EOF
endif " }}}
Expand Down

0 comments on commit a1d6acb

Please sign in to comment.