neovim: smartindent breaks indented comments #1

Closed
opened 2025-12-28 23:18:48 +01:00 by adam · 0 comments
Owner

Originally created by @ryan4yin on GitHub (Jul 17, 2023).

Using set smartindent causes comments not indent. After using o 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.

The problem only exist on .nix file.

set nosmartindent fix this issue.

Related to:

Originally created by @ryan4yin on GitHub (Jul 17, 2023). Using `set smartindent` causes comments not indent. After using o 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. The problem only exist on `.nix` file. `set nosmartindent` fix this issue. Related to: - https://github.com/LnL7/vim-nix/issues/16 - https://github.com/LunarVim/LunarVim/issues/3219
adam added the bug label 2025-12-28 23:18:48 +01:00
adam closed this issue 2025-12-28 23:18:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/nix-config#1