echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.84k stars 183 forks source link

ability don't continue comment #597

Closed kaiphat closed 9 months ago

kaiphat commented 9 months ago

Contributing guidelines

Module(s)

comments

Description

Can i change this behaviour

image

Press enter and get new commented line

image

I hardly ever write multiline comments, so this feature is bothering me.

echasnovski commented 9 months ago

This comes from built-in Neovim. See r flag in :h formatoptions.

You can properly disable it by adding this autocommand in your config: vim.cmd('autocmd FileType * setlocal formatoptions-=r').