How to make nvchad stop messing with indentations when commenting? #2618
-
When adding a "#" on a code line (Happens on all languages i try), nvchad adds identations to the line (sometimes removes the front indentation). I discovered that
None of them worked, nor any variation or combination of those. Is that hard to just say to nvim "After doing all your things, just before giving control to the user, do :set indentkeys-=0# |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
put it in custom init.lua please. Only if you read our docs you wouldve known that general vimscript/lua code can just go in the custom/init.lua. also please use vim.opt instead of vim.cmd |
Beta Was this translation helpful? Give feedback.
-
Tried the general init.lua just out of frustation. Already used the custom/init.lua to remove mouse interaction, but this particular setting is just not working.
|
Beta Was this translation helpful? Give feedback.
put it in custom init.lua please. Only if you read our docs you wouldve known that general vimscript/lua code can just go in the custom/init.lua.
also please use vim.opt instead of vim.cmd