Skip to content

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

Open
przepompownia wants to merge 1 commit intokevinhwang91:mainfrom
przepompownia:custom-opener
Open

feat(bqf.qfwin.handler): allow to use function as opener#129
przepompownia wants to merge 1 commit intokevinhwang91:mainfrom
przepompownia:custom-opener

Conversation

@przepompownia
Copy link

For example

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,
})

#45

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant