Skip to content
Discussion options

You must be logged in to vote

Actions

Open new buffer on list_down/list_up:

opts = {
  picker = {
    sources = {
      explorer = {
        win = {
          list = {
            keys = {
              ['j'] = { { 'list_down', 'jump', 'focus_list' } },
              ['k'] = { { 'list_up', 'jump', 'focus_list' } },

Replace the main window's buffer on list_down/list_up:

opts = {
  picker = {
    sources = {
      explorer = {
        actions = {
          replace_main = function(picker, item)
            if not item.dir and picker.main then
              local buf = vim.api.nvim_win_get_buf(picker.main)
              vim.bo[buf].buflisted = false
              picker:action 'jump'
            end
          end,
       …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gestate-8
Comment options

@gestate-8
Comment options

Answer selected by gestate-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants