-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an example of how to configure the plugin in lua #54
Comments
Hey thanks for the feedback, I am wondering if you may need to use the flag --no-nvim-args. I recently answered something similar here #48. I just gave this a quick read since I am away at the moment, I'll circle back and review with more details. I agree it is a lot of config and not quite obvious, I am trying to improve on that 👍 |
Yes, this did help. Thanks. But I again had to build my simple config like a constructor. Now, the problem is that all the plugins and all the custom Lua configs are enabled. By default, it's all disabled. I would assume that there is a switch of some sort or a way of pasting some more configuration to disable other plugins or something. I didn't see this in the doc either. So there should be 2 examples (or if they are similar, then only a small comment or note about the differences):
To give an idea, I want to add a couple of additional keymap to the default |
@Andrew15-5 gotcha, I have #52 as well which sounds similar. Right now, I am thinking of two approaches that could let you use a custom config specific to --nvim-args -u .lua
or NVIM_APPNAME
This way you can keep your I think this covers your first bullet.
For the second bullet,
It would be something like
and it would use the custom config defined in your setup like return {
{
'mikesmithgh/kitty-scrollback.nvim',
enabled = true,
lazy = true,
cmd = { 'KittyScrollbackGenerateKittens', 'KittyScrollbackCheckHealth', 'KittyScrollbackTest' },
event = { 'User KittyScrollbackLaunch' },
dev = true,
-- version = '*', -- latest stable version, may have breaking changes if major version changed
-- version = '^1.0.0', -- pin major version, include fixes and features that do not have breaking changes
config = function()
vim.g.mapleader = ' '
vim.g.maplocalleader = ','
require('kitty-scrollback').setup({
custom = function()
vim.print('customstuff')
end,
})
end,
},
} Have you checked out the Advanced Configuration section on the Wiki? There is a lot of good stuff there, it just doesn't have a written explanation on each config yet. |
@Andrew15-5 So, when someone wants to use a config, they won't see any updates reflected until they override the Kitten with From you perspective, do you think it makes more sense to
I have gone back and forth about this, I am not sure which one makes the most sense to be honest because I can see both sides. Also, do you prefer I am not really happy with the |
Yeah, I'll answer your questions later. |
closed in favor of #69 |
Everything is great so far. But some keymap are either don't work or just a bad UX for me, so I tried to customize stuff. Unfortunately nothing works. And the most annoying part, that I think I did everything right, but there is no example that I can compare to or copy+paste to see if/how it works. There are only each and every part of a configuration spread across the readme file. That's why I spend about an hour trying many different way to configure the plugin through lazy.nvim
opts
orconfig
and it just doesn't work.And I'm supposed to be a "smart" guy after knowing how to do stuff in Lua, how lazy.nvim config spec works, configuring NvChad and generally feeling pretty good (not great) about knowing how to configure Neovim things in Lua. Sometimes I do skip something from the doc which has a plain answer, but I don't think this is the case (I hope so).
Here is what I consider the almost 100% correct config:
lazy.nvim
kitty.conf
This config should both add
q
keymap and exit nvim. Neither is done after Ctrl+Shift+h.The text was updated successfully, but these errors were encountered: