Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)NV
Posts
6
Comments
8
Joined
2 yr. ago

Neovim @programming.dev

😽 kitty-scrollback.nvim v5.0.0 drop support for Kitty version < 0.32.2 + use Kitty's builtin bracketed paste + experimental tmux support

Neovim @programming.dev

😽 kitty-scrollback.nvim: v4.0.0 use Neovim config by default + replace global config name + README instruction updates

Neovim @programming.dev

😽 kitty-scrollback.nvim: v3.0.0 defaults to Neovim icon + adds support for new Neovim colorscheme

Neovim @programming.dev

😽 kitty-scrollback.nvim: v2.2.0 adds support for Neovim v0.9 + neovimconf2023

Neovim @programming.dev

😽 kitty-scrollback.nvim: v2.0.0 breaking changes + setup config + kitty_mod + demos

  • ah I gotcha. There is no option at the moment to completely disable the scrollback, but you could hook into some callbacks to trigger and customizations.

    For example,

    your_awesome_config.lua

     lua
        
    local M = {}
    
    M.config = function(kitty_data)
      return {
        paste_window = {
          winblend = 10,
          winopts_overrides = function(paste_winopts)
            local h = vim.o.lines - 5 -- TODO: magic number 3 for footer and 2 for border
            return {
              border = 'solid',
              row = 0,
              col = 0,
              height = h &lt; 1 and 3 or h, -- TODO: magic number 3 for footer
              width = vim.o.columns,
            }
          end,
          footer_winopts_overrides = function(footer_winopts, paste_winopts)
            return {
              border = 'single',
              title = ' kitty-scrollback.nvim ',
              title_pos = 'center',
            }
          end,
        },
        kitty_get_text = {
          extent = 'screen',
          ansi = true,
        },
        callbacks = {
          after_ready = function(kitty_data, opts)
            vim.cmd.startinsert()
          end,
        },
      }
    end
    
    return M
    
      

    kitty.conf

     
        
    map f1 kitty_scrollback_nvim --config-file /your_awesome_config.lua
    
      

    I plan to document some of the advanced configurations, just haven't had time to get to it 👍

    I could add an option to have no scrollback and a single buffer like you mentioned similar to `` behavior in bash. I'll think on that one.

    Thanks for the kind words 🙂

  • Neovim @programming.dev

    😽 kitty-scrollback.nvim: Open your Kitty scrollback buffer with Neovim. Ameowzing!