Skip to content
Mike Smith edited this page Mar 10, 2024 · 26 revisions

Table of Contents generated with DocToc

Advanced Configuration

Examples

See Advanced Configuration Examples for detailed demos of configuration options.

Useful Configurations

Find text in scrollback buffer / start in backward search

After kitty-scrollback.nvim loads, enter command-line mode with the search pattern "?" to start searching for text. The following creates a configurations with the name search and a mapping to open it with kitty_mod+f.

Plugin Configuration

require('kitty-scrollback').setup({
  search = {
    callbacks = {
      after_ready = function()
        vim.api.nvim_feedkeys('?', 'n', false)
      end,
    },
  },
})

Kitten Configuration

map kitty_mod+f kitty_scrollback_nvim --config search

Recommended Configurations for other plugins

Recommended configurations for other plugins that may be impacted by kitty-scrollback.nvim.

Hide kitty-scrollback.nvim buffers in the tabline.

require('barbar').setup({
  auto_hide = vim.env.KITTY_SCROLLBACK_NVIM == 'true' and 1 or -1,
})

Disable auto-save.nvim when kitty-scrollback.nvim is active.

require('auto-save').setup({
  enabled = vim.env.KITTY_SCROLLBACK_NVIM ~= 'true',
})
Clone this wiki locally