Comments (2)
Hey @tummetott, thanks! I agree the configuration for kitty-scrollback.nvim can be improved. I added the details of his ticket to #69 where I plan on redesigning kitty-scrollback.nvim's configuration.
Have you seen any issues with kitty-scrollback.nvim after this change to your config? If you have any other ideas on how the configuration can be improved, feel free to share 👍
from kitty-scrollback.nvim.
Have you seen any issues with kitty-scrollback.nvim after this change to your config?
Initially, I tried symlinking just the kitty_scrollback_nvim.py
file, but I encountered Python errors due to this script loading other Python files in the same directory. As a result, I opted to symlink the entire plugin directory, which has been working seamlessly without any issues so far.
If you have any other ideas on how the configuration can be improved, feel free to share 👍
I have an additional suggestion to further simplify the configuration process. It would be highly beneficial if configuration entries could accept both functions and tables. For instance, consider the following:
require('kitty-scrollback').setup {
global = function()
return {
paste_window = { ... },
kitty_get_text = { ... },
}
end,
}
can also be configured as
require('kitty-scrollback').setup {
global = {
paste_window = { ... },
kitty_get_text = { ... },
},
}
or
winopts_overrides = function()
return {
border = 'rounded',
row = ...
col = ...
}
end
could also be configured as:
winopts_overrides = {
border = 'rounded',
row = ...
col = ...
}
There are scenarios where using a function is the most appropriate choice, especially when specific configuration values need to be computed dynamically at runtime. However, there are equally valid situations where the table returned by the function consists of static values that do not require any dynamic computation. In such cases, the function wrapper may appear to introduce unnecessary boilerplate code, potentially complicating the configuration unnecessarily. Thus, offering the option to directly provide a table can greatly simplify the configuration process for these static values, making it more intuitive and concise.
from kitty-scrollback.nvim.
Related Issues (20)
- chore: create ISSUE template
- chore: create testing matrix for tests action HOT 1
- feat: add tmux support HOT 4
- bug: fix pastewin position when winbar is set
- Overzealous in its shell integration validation HOT 6
- Custom filetype for customizations HOT 5
- feat: redesign configuring kitty-scrollback.nvim
- feat: default to nvim icon instead of vim icon HOT 1
- bug: module 'kitty-scrollback.launch' not found HOT 6
- fix: resizing kitty os window moves status win to wrong position HOT 1
- feat: do not select text that is pasted to Kitty via bracketed_paste_mode HOT 1
- feat: apply paste_command and execute_command to visual selection HOT 3
- feat: distinguish actual scrollback newlines vs vim.o.columns hardwrapped newlines HOT 3
- No Module Named Error HOT 5
- chore: create github action and docs for vnc troubleshooting HOT 1
- fix: clear highlight groups in the new beautiful default Neovim theme HOT 1
- bug: kitty-scrollback.nvim fails if kitty executable is not on PATH HOT 1
- Nvim 0.9.4 Attempt to index 'p' a nil value at line 194 api.lua HOT 9
- bug: kitty-scrollback.nvim hangs after kitten ssh (blank screen after ssh) HOT 11
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.