-
Notifications
You must be signed in to change notification settings - Fork 17
Home
Table of Contents generated with DocToc
See Advanced Configuration Examples for detailed demos of configuration options.
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.
require('kitty-scrollback').setup({
search = {
callbacks = {
after_ready = function()
vim.api.nvim_feedkeys('?', 'n', false)
end,
},
},
})map kitty_mod+f kitty_scrollback_nvim --config search
Recommended configurations for other plugins that may be impacted by kitty-scrollback.nvim.
Disable auto-save.nvim when kitty-scrollback.nvim is active.
require('auto-save').setup({
enabled = vim.env.KITTY_SCROLLBACK_NVIM ~= 'true',
})Disable auto-session when kitty-scrollback.nvim is active.
require('auto-session').setup({
auto_session_enabled = vim.env.KITTY_SCROLLBACK_NVIM ~= 'true',
})Hide kitty-scrollback.nvim buffers in the tabline.
require('barbar').setup({
auto_hide = vim.env.KITTY_SCROLLBACK_NVIM == 'true' and 1 or -1,
})Disable image.nvim when kitty-scrollback.nvim is active.
if vim.env.KITTY_SCROLLBACK_NVIM ~= 'true' then
require('image').setup()
endAlternatively, if you are using lazy.nvim, then you can use the cond option.
{
'3rd/image.nvim',
cond = vim.env.KITTY_SCROLLBACK_NVIM ~= 'true',
...
}If you prefer to have image.nvim enabled, see #261 for additional troubleshooting steps.
Disable neovim-session-manager when kitty-scrollback.nvim is active.
local modes = require('session_manager.config').AutoloadMode
require('session_manager').setup({
autoload_mode = vim.env.KITTY_SCROLLBACK_NVIM == 'true' and modes.Disabled or modes.LastSession,
})-
kitty-scrollback.nvimuses bracketed paste mode when sending contents to kitty.\e[200~is sent to the terminal to start bracketed paste mode where\erepresents escape. It is possible that if you have already typed escape and then opened kitty-scrollback.nvim, you will see the text[200~before the content you sent to kitty. This is because the first escape causes the start of the message to be\e\e[200~and the first\einterferes with the second\ewhich is starting bracketed paste mode. kitty-scrollback.nvim previously handled this is versions <=v4.3.4by starting the message with a null character to avoid the case of two escapes. The start of the message would then look like\e\0\e[200~where\eis escape and\0is the null character. This worked as expected for bash, but causes empty spaces to be displayed for other shells like fish. kitty-scrollback.nvim no longer sends the null character and it is recommended to replace two escapes to a no operation in bash to avoid this scenario.- Add the following to your
~/.inputrcfile to remap two escapes to a no operation. ~/.inputrc is the readline init file that is used by bash to handle custom key bindings."\e\e": ""
- Add the following to your
😽 Open your Kitty scrollback buffer with Neovim. Ameowzing!