LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.4k stars 1.17k forks source link

fix formatoptions part #190

Closed abxh closed 2 years ago

abxh commented 2 years ago

Based on: https://vi.stackexchange.com/a/17739.

Running :verbose set fo? shows Last set from /usr/share/nvim/runtime/ftplugin/lua.vim line 20, where the culprit lies.

You either have have to change that file, or replace set formatoptions-=cro with au BufEnter * set fo-=c fo-=r fo-=o, an autocommand which does the job after opening neovim as a temporary measure.

abxh commented 2 years ago

there is already another pull request it seems