Comments (6)
I know this option, and I fixed a bug about this : ), see: #182
There's a more complicated situation in my use case. I'm using 'statuscolumn'
to arrange my sign columns, there's no way to disable 'statuscolumn'
except a hook to do this.
from kitty-scrollback.nvim.
Hey @ofseed I added the callback after_paste_window_ready
that has a first parameter containing the window and buffer ids of the scrollback buffer, paste window, and paste window footer. The paste window data will be in form similar to:
local paste_window_data = {
scrollback_buffer = { bufid = p.bufid, winid = p.winid },
paste_window = { bufid = p.paste_bufid, winid = p.paste_winid },
paste_window_footer = { bufid = p.footer_bufid, winid = p.footer_winid },
}
I played around a bit and created this example:
require('kitty-scrollback').setup({
{
callbacks = {
after_paste_window_ready = function(pastewin_data, kitty_data, opts)
local stc = '%#ErrorMsg#%{(v:lnum%2)?" ".v:lnum:""}' .. '%#WarningMsg#%{!(v:lnum%2)?" ".v:lnum:""} '
vim.api.nvim_set_option_value('statuscolumn', stc, {
win = pastewin_data.paste_window.winid,
})
vim.keymap.set({ '' }, '<Tab>', '<Plug>(KsbToggleFooter)', {
buffer = pastewin_data.paste_window.bufid,
})
if pastewin_data.paste_window_footer.winid then
vim.api.nvim_set_option_value('statuscolumn', 'help:', {
win = pastewin_data.paste_window_footer.winid,
})
end
end,
},
},
})
Please let me know if you run into any issues
from kitty-scrollback.nvim.
Hey @ofseed thanks for reporting.
Regarding adjusting window options, there are overrides exposed via:
Options | Type | Description |
---|---|---|
paste_window.winopts_overrides | fun(paste_winopts: KsbWinOpts): table<string,any>? |
Paste float window overrides, see nvim_open_win() for configuration |
paste_window.footer_winopts_overrides | fun(footer_winopts: KsbWinOpts, paste_winopts: KsbWinOpts): table<string,any>? |
Paste footer window overrides, see nvim_open_win() for configuration |
There is an example of this in Advanced Configuration Examples named ksb_example_paste_win_winopts.
But, I agree, there is no general hook if you want to do something based on the bufnr
or winid
. What are you trying to trigger when the paste window opens?
from kitty-scrollback.nvim.
I know this option, and I fixed a bug about this : ), see: #182
😅 oops, didn't realize.
There's a more complicated situation in my use case. I'm using
'statuscolumn'
to arrange my sign columns, there's no way to disable'statuscolumn'
except a hook to do this.
Ah, I see yeah you are right.
from kitty-scrollback.nvim.
🎉 This issue has been resolved in version 4.2.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
from kitty-scrollback.nvim.
It runs without problems, thank you!
from kitty-scrollback.nvim.
Related Issues (20)
- Neovim loads very long and then opens my dashboard malformed HOT 5
- chore: add tests for popular nvim distros
- chore: add kitty 0.32.1 to test matrix HOT 1
- Not my config HOT 20
- v4.0.0 seems to regress performance HOT 5
- bug: fallback to Kitty foreground/background colors when Normal highlight is undefined HOT 1
- feat: update `paste_window` options to be either a table of function HOT 1
- chore: add test coverage for footer_win_opts HOT 1
- Still having CheckHealth warning despite good configuration HOT 3
- bug: list chars in keymap generation causing error: "Ignoring invalid config line" HOT 4
- chore: add kitty v0.32.2 to test matrix HOT 1
- docs: concerns regarding allow_remote_control HOT 1
- bug: conflict with pocco81/auto-save.nvim yank triggers write HOT 2
- chore: add test coverage for after_paste_window_ready callback HOT 1
- discussion: last_cmd_output is not producing output in tmux HOT 9
- Start in search mode HOT 1
- Feature Request: LLM Integration HOT 1
- bug: command-line window conflicts with mappings HOT 1
- chore: investigate nightly test failures
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty-scrollback.nvim.