yujinyuz / gitpad.nvim

minimal neovim plugin for taking down notes for git projects, branch, etc.
https://yujinyuz.github.io/gitpad.nvim/
MIT License
43 stars 4 forks source link

Please enable mapping e.g. "q" or "esc" to close gitpad #6

Closed idelice closed 1 month ago

yujinyuz commented 1 month ago

You can add it via setup

require('gitpad).setup {
  on_attach = function(bufnr)
    -- You can also define a function to be called when the gitpad window is opened, by setting the `on_attach` option:
    -- This is just an example
    vim.api.nvim_buf_set_keymap(bufnr, 'n', 'q', '<Cmd>wq<CR>', { noremap = true, silent = true })
  end,
}