Comments (7)
Yes, that sounds pretty good! Maybe also have a special default
config key, that when specified, will get invoked when no --config
is provided? But I'm just bikeshedding here, either way would be fine.
from kitty-scrollback.nvim.
Hey @musjj , I released adding configs to your setup function in v2.0.0
let me know how this works for you 👍
from kitty-scrollback.nvim.
Hey @musjj,
I have plans to add more detailed documentation and guides for configuring keymaps/options.
There are a couple things you can do at the moment.
Example disable all keymaps: https://github.com/mikesmithgh/kitty-scrollback.nvim/blob/main/lua/kitty-scrollback/configs/keymaps_disabled.lua
Example override keymaps: https://github.com/mikesmithgh/kitty-scrollback.nvim/blob/main/lua/kitty-scrollback/configs/keymaps_custom.lua
- <NOP> could also be used to disable certain keymaps (e.g.,
lua vim.keymap.set({ 'n' }, '<Plug>(KsbYankLine)', '<NOP>', {})
)
If you run the command :KittyScrollbackGenerateKittens!
it will display a list of kittens pointing to all of the example configs.
Those should allow you to reconfigure the default keymaps (https://github.com/mikesmithgh/kitty-scrollback.nvim/blob/main/lua/kitty-scrollback/keymaps.lua#L20).
Right now, yanks to the unnamed register are handled by an autocommand and not by a keymap. So that can't be configured, https://github.com/mikesmithgh/kitty-scrollback.nvim/blob/main/lua/kitty-scrollback/autocommands.lua#L165
- I could add an option to specify a register or nil to allow that to be configured or disabled. Is this something that you are interested in?
Appreciate the feedback 👍
from kitty-scrollback.nvim.
Thanks, that's interesting, I didn't realize that the plugin uses a separate config file. Are there any plans to go with the conventional require("kitty-scrollback").setup(...)
configuration method? That'd make configuration a lot easier.
I could add an option to specify a register or nil to allow that to be configured or disabled. Is this something that you are interested in?
Yes, it would be nice if there's an option to configure this too!
from kitty-scrollback.nvim.
Thanks, that's interesting, I didn't realize that the plugin uses a separate config file. Are there any plans to go with the conventional require("kitty-scrollback").setup(...) configuration method? That'd make configuration a lot easier.
I originally used separate config files because the kitten (written in python) starts Nvim and passes kitty specific info as arguments. I did some experimenting and think I could get the conventional setup method to work and agree it would be cleaner.
require('kitty-scrollback').setup({
default = function(kitty_data)
return { ... default config here ... }
end,
another = function(kitty_data)
return { ... another config here ... }
end,
...
})
Then the kitten would be called like
kitty.conf
map ctrl+shift+h kitty_scrollback_nvim --config default
map f1 kitty_scrollback_nvim --config another
That way you could centralize all your configs in the setup and then specify the particular config by key. @musjj Does that sound like a good approach to you or do you have any other ideas?
Yes, it would be nice if there's an option to configure this too!
Nice, I'll add an issue for that
from kitty-scrollback.nvim.
🎉 This issue has been resolved in version 2.0.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
from kitty-scrollback.nvim.
Thank you!
from kitty-scrollback.nvim.
Related Issues (20)
- chore: investigate nightly test failures
- bug: very small window causes E49: Invalid scroll size HOT 1
- bug: failure to open over kitten ssh HOT 4
- chore: add tests for ssh connections HOT 2
- chore: investigate flaky test failure with incorrect git branch HOT 1
- test: track and fix flaky CI tests HOT 2
- chore: kitty release 0.34.0 update test matrix HOT 1
- fix: fails to open over kitten ssh split window HOT 1
- feat: add nvim-terminal.lua integration
- bug: failed to launch child: nvim HOT 9
- Installation instructions HOT 1
- Bug: scrollback editing freezes when used with with auto-session HOT 1
- feat: replace ps1 prompt HOT 5
- feat: make the current cmdline editable in place HOT 7
- ci: update Neovim test matrix for v0.10 release HOT 1
- bug: ksb_builtin_last_visited_cmd_output doesn't capture everything HOT 6
- bug: executing command causing autocomplete in fish shell HOT 1
- Buffer opens up with modifiable set to false HOT 1
- bug: incorrect filetype for paste window HOT 1
- feat: add ability to have scrollback window and paste window open at the same time HOT 1
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.