pederng / dotfiles

Various configuration files
0 stars 0 forks source link

Misspelling of fugitive in neovim autocmds #1

Open daephx opened 2 years ago

daephx commented 2 years ago

Hey friend, I was searching neovim autocmds for reference and noticed you misspelled this. fugitive://* https://github.com/pederng/dotfiles/blob/607c5c1f281208748e16237d496518b230f162a6/.config/nvim/lua/autocmds.lua#L12

However, I think fugitive already sets this internally. Though I could be mistaken. I have this autocmd for when committing from a terminal buffer because I had some issues with the commit not applying due to bufhidden.

api.nvim_create_augroup('GitBuffers', { clear = true })
api.nvim_create_autocmd('FileType', {
  desc = 'Apply custom settings to git specific buffers',
  group = 'GitBuffers',
  pattern = { 'gitrebase', 'gitcommit' },
  callback = function()
    vim.opt_local.bufhidden = 'delete'
    vim.opt_local.spellcapcheck = ''
  end,
})
pedernot commented 2 years ago

Heh, thanks. I hadn't noticed anything broken since I converted to lua, so I guess you are right in that it is set by fugitive.