Skip to content

v6.0.0

Latest
Compare
Choose a tag to compare
@mikesmithgh mikesmithgh released this 15 Nov 16:49
· 2 commits to main since this release

6.0.0 (2024-11-15)

  • feat!: exit kitty-scrollback.nvim with q key instead of esc (#272) (1ae369b)

BREAKING CHANGES

  • Change the default keymap for quitting kitty-scrollback.nvim from <Esc> to q.

If you prefer the previous behavior of using <Esc> to exit kitty-scrollback.nvim, this can be reconfigured by
adding the following to your kitty-scrollback.nvim setup.

vim.keymap.set({ 'n' }, '<Esc>', '<Plug>(KsbCloseOrQuitAll)', {})

For example, if you are using lazy.nvim, it would look something like this

return {
  {
    'mikesmithgh/kitty-scrollback.nvim',
    lazy = true,
    cmd = { 'KittyScrollbackGenerateKittens', 'KittyScrollbackCheckHealth' },
    event = { 'User KittyScrollbackLaunch' },
    config = function()
      vim.keymap.set({ 'n' }, '<Esc>', '<Plug>(KsbCloseOrQuitAll)', {}) -- quit kitty-scrollback.nvim with Esc key
      -- vim.keymap.set({ 'n' }, 'q', '<Plug>(KsbCloseOrQuitAll)', {}) -- uncomment if you would like to also quit with the q key
      require('kitty-scrollback').setup()
    end,
  },
}