BREAKING: Rename focus_location -> peek_location

Avoids confusion with other uses of 'focus'.
This commit is contained in:
hedy
2023-11-02 21:13:30 +08:00
parent f8c1ff33e3
commit fe98a8cf8a
3 changed files with 15 additions and 6 deletions

View File

@@ -259,9 +259,13 @@ local function setup_keymaps(bufnr)
M._goto_location(true)
end)
-- goto_location of symbol but stay in outline
map(config.options.keymaps.focus_location, function()
map(config.options.keymaps.peek_location, function()
M._goto_location(false)
end)
-- -- goto_location of symbol but stay in outline
-- map(config.options.keymaps.down_and_goto, function()
-- M._move_and_goto(false)
-- end)
-- hover symbol
map(
config.options.keymaps.hover_symbol,

View File

@@ -35,7 +35,7 @@ M.defaults = {
show_help = '?',
close = { '<Esc>', 'q' },
goto_location = '<Cr>',
focus_location = 'o',
peek_location = 'o',
hover_symbol = '<C-space>',
toggle_preview = 'K',
rename_symbol = 'r',