Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bqf.qfwin.handler): allow to use function as opener #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 21, 2023

  1. feat(bqf.qfwin.handler): allow use function as opener

    For example
    ```lua
    local function tabDropHandler()
      require('bqf.qfwin.handler').open(true, function(fname)
        customTabDrop(fname))
      end)
    end
    local function configureWindow()
      vim.keymap.set({'n'}, '<CR>', tabDropHandler, {buffer = true})
    end
    
    local augroup = vim.api.nvim_create_augroup ('BqfMappings', {clear = true })
    vim.api.nvim_create_autocmd ('FileType', {
      group = augroup,
      pattern = 'qf',
      callback = configureWindow,
    })
    ```
    
    kevinhwang91#45
    przepompownia committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    3e63150 View commit details
    Browse the repository at this point in the history