mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2025-02-25 01:06:53 +00:00
don't display fugitive sign on diff mode
This commit is contained in:
parent
ade1c81a88
commit
56bd673932
2
lua/gitsigns.lua
generated
2
lua/gitsigns.lua
generated
@ -412,7 +412,7 @@ local function get_buf_path(bufnr)
|
||||
return vim.fn.expand('%:p')
|
||||
end)
|
||||
|
||||
if vim.startswith(file, 'fugitive://') then
|
||||
if vim.startswith(file, 'fugitive://') and vim.wo.diff == false then
|
||||
local orig_path = file
|
||||
file = file:gsub('^fugitive:', ''):gsub('%.git/+%x-/', '')
|
||||
file = uv.fs_realpath(file)
|
||||
|
@ -412,7 +412,7 @@ local function get_buf_path(bufnr: integer): string, string
|
||||
return vim.fn.expand('%:p')
|
||||
end)
|
||||
|
||||
if vim.startswith(file, 'fugitive://') then
|
||||
if vim.startswith(file, 'fugitive://') and vim.wo.diff == false then
|
||||
local orig_path = file
|
||||
file = file:gsub('^fugitive:',''):gsub('%.git/+%x-/', '')
|
||||
file = uv.fs_realpath(file)
|
||||
|
@ -183,6 +183,11 @@ global record vim
|
||||
updatetime: number
|
||||
end
|
||||
|
||||
|
||||
record wo
|
||||
diff: boolean
|
||||
end
|
||||
|
||||
record lsp
|
||||
record util
|
||||
close_preview_autocmd: function ({string}, number)
|
||||
|
Loading…
Reference in New Issue
Block a user