lewis6991 / gitsigns.nvim

Git integration for buffers
MIT License
5.21k stars 191 forks source link

Set filetype for git_blame window #196

Closed seblj closed 2 years ago

seblj commented 3 years ago

I had an idea to fix gitmoji for the git blame window, but my solution depends on setting a few settings in the ftplugin directory. A filetype for the window would help with this. I could fix a PR for this as this would only require one line.

If there is a way for me to set the filetype myself, this would also work! I just couldn't figure out a way to do this

lewis6991 commented 3 years ago

There have been one or two requests for configuring preview windows so something more general would be preferable. Maybe something like an on_open_win callback.

seblj commented 3 years ago

Yeah I think that's a good idea!

lewis6991 commented 2 years ago

This should be fulfilled by #622 which sets the window variable gitsigns_preview to either blame or hunk.