fix: save position into jumplist before 'edit' action (#1234)

currently enabled for some builtins. You can manually enable it by adding `push_cursor_on_edit = true` to the builtin options. But feel free to open a PR if you find a builtin that needs this option enabled.
This commit is contained in:
Joshua Cao
2022-04-08 11:09:58 -07:00
committed by GitHub
parent 317371d37c
commit 8af0d384d2
4 changed files with 10 additions and 0 deletions

View File

@@ -933,6 +933,7 @@ internal.marks = function(opts)
},
previewer = conf.grep_previewer(opts),
sorter = conf.generic_sorter(opts),
push_cursor_on_edit = true,
}):find()
end

View File

@@ -45,6 +45,7 @@ lsp.references = function(opts)
},
previewer = conf.qflist_previewer(opts),
sorter = conf.generic_sorter(opts),
push_cursor_on_edit = true,
}):find()
end)
end
@@ -151,6 +152,7 @@ lsp.document_symbols = function(opts)
tag = "symbol_type",
sorter = conf.generic_sorter(opts),
},
push_cursor_on_edit = true,
}):find()
end)
end