fix: cleanup of layout actions

* fix: finish docs and remove mistakes from merge

* fix: change order of `popup` changes based on type of change
  - removes "flash" issue where popups don't update in sync
This commit is contained in:
Luke Kershaw
2021-11-16 11:14:52 +00:00
parent edcf07cf88
commit d686fb2799
4 changed files with 29 additions and 31 deletions

View File

@@ -144,13 +144,6 @@ function actions.toggle_all(prompt_bufnr)
end)
end
--- Toggle preview window.
--- - Note: preview window can be toggled even if preview is set to false.
---@param prompt_bufnr number: The prompt bufnr
function actions.toggle_preview(prompt_bufnr)
action_state.get_current_picker(prompt_bufnr):toggle_preview()
end
function actions.preview_scrolling_up(prompt_bufnr)
action_set.scroll_previewer(prompt_bufnr, -1)
end