feat: update autocmds for git filetypes with fugiive:/// bufnames
This commit is contained in:
parent
e2a62a6aa5
commit
686b02b790
3 changed files with 9 additions and 5 deletions
|
|
@ -4,9 +4,13 @@ end
|
|||
vim.g.loaded_fugitive_ts = 1
|
||||
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'fugitive',
|
||||
pattern = { 'fugitive', 'git' },
|
||||
callback = function(args)
|
||||
require('fugitive-ts').attach(args.buf)
|
||||
local ft = require('fugitive-ts')
|
||||
if args.match == 'git' and not ft.is_fugitive_buffer(args.buf) then
|
||||
return
|
||||
end
|
||||
ft.attach(args.buf)
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue