-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smartindent breaks indented comments #16
Comments
Could you give an example? |
Weird, that doesn't happen for me. I'll try to reproduce with a minimal |
I tried using the same minimal ~/.vimrc with Neovim and Vim 8.0. The issue only appears in Neovim. Looks like Neovim usually interacts differently with |
I have the same issue. I'm running I have |
@peperunas NVIM v0.9.1 here, and everything works fine after According to LunarVim/LunarVim#3219, neovim's docs for indentation:
So just disable |
Using
set smartindent
causes comments not indent. After usingo
to insert a new indented line, typing#
causes the line to lose its indentation. Editing the line before inserting the#
will work around this issue.This is in Neovim v0.2.2, with the latest
vim-nix
and a minimalinit.vim
.Likely culprit: 1e32fe7
The text was updated successfully, but these errors were encountered: