Enhance formatting by preserving view on save, update keymaps
Save cursor position and folds before formatting, restoring them afterwards to improve user experience during format-on-save.
This commit is contained in:
parent
8cf56f13e5
commit
8c9f117320
2 changed files with 8 additions and 4 deletions
|
|
@ -51,10 +51,10 @@ return {
|
|||
incremental_selection = {
|
||||
enable = true,
|
||||
keymaps = {
|
||||
init_selection = "<CR>",
|
||||
node_incremental = "<CR>",
|
||||
scope_incremental = "<S-CR>",
|
||||
node_decremental = "<BS>",
|
||||
init_selection = "+",
|
||||
node_incremental = "+",
|
||||
scope_incremental = "g+",
|
||||
node_decremental = "-",
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue