Skip to content
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 causes some lines unable to be indented #3219

Closed
yifeikong opened this issue Oct 13, 2022 · 2 comments · Fixed by #3363
Closed

smartindent causes some lines unable to be indented #3219

yifeikong opened this issue Oct 13, 2022 · 2 comments · Fixed by #3363
Labels
bug Something isn't working

Comments

@yifeikong
Copy link

Problem description

Any lines starting with a # is unable to be indented with >>.

There are articles[1][2] saying that smartindent is deprecated and should not be set.

  1. https://stackoverflow.com/questions/7281107/vim-cant-indent-lines-if-first-character-starts-with-a
  2. https://vim.fandom.com/wiki/Restoring_indent_after_typing_hash

LunarVim version

master-e4a5fe9

Neovim version (>= 0.8.0)

NVIM v0.8.0

Operating system/version

macOS 12.0

Steps to reproduce

  1. Open any file with lines like # this is a title
  2. Use >> on that line
  3. This line is not indented

support info

not applicable

Screenshots

No response

@yifeikong yifeikong added the bug Something isn't working label Oct 13, 2022
@opalmay
Copy link
Contributor

opalmay commented Oct 15, 2022

@kylo252 Any concerns removing that setting?

@kylo252
Copy link
Collaborator

kylo252 commented Oct 16, 2022

@kylo252 Any concerns removing that setting?

sure, please create a new PR for that.

we should probably follow the choices made in:
https://github.com/nvim-lua/kickstart.nvim/blob/master/init.lua#L62-L100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants