Add nvim kitty scrollback

This commit is contained in:
Thomas Avé 2024-11-23 00:20:25 +01:00
parent f98157cae1
commit 3bbe1d6016
2 changed files with 21 additions and 0 deletions

View File

@ -9,6 +9,10 @@
size = lib.mkDefault 15;
};
keybindings = {
"kitty_mod+h" = "kitty_scrollback_nvim";
"kitty_mod+g" = "kitty_scrollback_nvim --config ksb_builtin_last_cmd_output";
};
settings = {
cursor_shape = "block";
cursor_beam_thickness = 1;
@ -17,6 +21,11 @@
enable_audio_bell = "no";
confirm_os_window_close = 0;
modify_font = "cell_height 115%";
allow_remote_control = "socket-only";
listen_on = "unix:/tmp/kitty";
shell_integration = "enabled";
action_alias = "kitty_scrollback_nvim kitten /home/user/.local/share/nvim/lazy/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py";
mouse_map = "ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output";
# Theme
background = "#000010";

View File

@ -0,0 +1,12 @@
return {
'mikesmithgh/kitty-scrollback.nvim',
enabled = true,
lazy = true,
cmd = { 'KittyScrollbackGenerateKittens', 'KittyScrollbackCheckHealth' },
event = { 'User KittyScrollbackLaunch' },
version = '*', -- latest stable version, may have breaking changes if major version changed
-- version = '^6.0.0', -- pin major version, include fixes and features that do not have breaking changes
config = function()
require('kitty-scrollback').setup()
end,
}