- Notifications
You must be signed in to change notification settings - Fork1
Commitc93af75
committed
Fix <Plug>HaskellIndentN/-P on Neovim
In Neovim ^F causes indent to happen *twice*. Therefore on the secondround the indentation did just get reset to the default.This commit works around that by skipping the second indent when weexpect it.A more robust solution could be something like <C-\><C-O>:set indentexpr=<indent><CR><C-F>which would work regardless of Neovim behavior. == can not be used forblank lines, and :left would have to be followed by ^F anyway to set the`did_ai` flag, which is needed in order to act similarly to <C-T>/<C-D>(that leave `did_ai` as is) where indent on blank lines is deleted uponleaving Insert mode.Seeneovim/neovim#128941 parenta00ad1c commitc93af75
2 files changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
0 commit comments
Comments
(0)