Bryley / neoai.nvim

Neovim plugin for intracting with GPT models from OpenAI
MIT License
558 stars 51 forks source link

Add --ignore-space-at-eol option to the gitcommit shortcut in the setup #55

Open sleiphir opened 10 months ago

sleiphir commented 10 months ago

In my case, I have an old project that was not conventionally formatted and so there are many lines that end with one or more spaces. What happens when I save the file is that it deletes all of these spaces automatically. This makes the git diff appear for larger than what it really is. Seeing this I added the --ignore-space-at-eol flag and it drastically reduced the size of the diff while keeping all the useful part.

In any case I think people should be aware of the amount of token that can be used when using shortcuts but I think adding this flag would help people preemptively