I want to set textwidth=72 when I'm editing a git commit. How do I load a git commit ftplugin in Neovim? I've tried defining the ftplugin/gitcommit.lua file, but it has no effect. (Other ftplugins in the same folder work as expected.)
How do I define a filetype plugin for git commits in Neovim?
93 Views Asked by Sasgorilla At
3
I had this in my older Vim configuration:
Using lua, that would look something like this:
...although with my current configuration this isn't necessary, and I can populate
~/.config/nvim/after/ftplugin/gitcommita.lualike this:And it works as expected.