feat: added autoclose functionality
This commit is contained in:
@@ -72,6 +72,7 @@ function M._goto_location(change_focus)
|
||||
vim.api.nvim_win_set_cursor(M.state.code_win,
|
||||
{node.line + 1, node.character})
|
||||
if change_focus then vim.fn.win_gotoid(M.state.code_win) end
|
||||
if config.options.auto_close then M.close_outline() end
|
||||
end
|
||||
|
||||
function M._highlight_current_item(winnr)
|
||||
|
||||
@@ -7,6 +7,7 @@ M.defaults = {
|
||||
show_guides = true,
|
||||
position = 'right',
|
||||
width = 25,
|
||||
auto_close = false,
|
||||
auto_preview = true,
|
||||
show_numbers = false,
|
||||
show_relative_numbers = false,
|
||||
|
||||
Reference in New Issue
Block a user