-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: Add Neovim Nerd Font Icon #38
Comments
Nerd Fonts 3.1.0 was released today and Neovim icon is now available \o/ |
thanks! |
🎉 This issue has been resolved in version 2.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hey @xfzv , I just merged the change to let you use the Neovim icon. The instructions are here https://github.com/mikesmithgh/kitty-scrollback.nvim/tree/main#nerd-fonts. Configuring kitty-scrollback.nvim is odd right now, so I plan to improve the experience but this should work for now. Please let me know if you hit any issues. |
Nice!
I guess it is, at least I can't figure how to use the Neovim icon, I'm still getting the Vim one. My current setup:
return {
"mikesmithgh/kitty-scrollback.nvim",
cmd = { "KittyScrollbackGenerateKittens", "KittyScrollbackCheckHealth" },
event = "User KittyScrollbackLaunch",
config = function()
require("kitty-scrollback").setup({
ksb_example_visual_selection_highlight_mode_reverse = function()
return {
visual_selection_highlight_mode = "reverse",
}
end,
})
end,
}
kitty-scrollback.nvim/README.md Lines 416 to 419 in 625f356
Is a distinct I tried this but it doesn't work: return {
"mikesmithgh/kitty-scrollback.nvim",
cmd = { "KittyScrollbackGenerateKittens", "KittyScrollbackCheckHealth" },
event = "User KittyScrollbackLaunch",
config = function()
require("kitty-scrollback").setup({
{
ksb_example_visual_selection_highlight_mode_reverse = function()
return {
visual_selection_highlight_mode = "reverse",
}
end,
},
{
ksb_example_status_win_nvim = function()
return {
status_window = {
icons = {
nvim = "",
},
},
}
end,
},
})
end,
} |
Regarding your config function, configurations that are prefixed with If it is working as expected, then your configuration with
The reason your the icon isn't showing up is a couple things,
kitty-scrollback.nvim will just take one of those configs and you will not have all the configurations that you expected
For now, I suggest you do this:
-- since your entire config isn't loaded, we can just add kitty-scrollback.nvim to neovim runtime path
-- I see you are using lazy.nvim and know where the file is that is how I am referencing it below
-- it should be /home/xfzv/.local/share/nvim/lazy/kitty-scrollback.nvim
vim.opt.runtimepath:append(vim.fn.stdpath('data') .. '/lazy/kitty-scrollback.nvim')
-- this is where you can configure everything now
require('kitty-scrollback').setup({
-- global is a special reserved config that will apply to all of your configurations
-- for example if you pass --config ksb_builtin_last_cmd_output, global will still be loaded
global = function()
return {
visual_selection_highlight_mode = 'reverse',
status_window = {
icons = {
nvim = '',
},
},
}
end,
another_config = function() -- this is just an example, you can remove this. But imagine you have a config that is specific to a certain
-- map in kitty.conf, you can use this like map f1 kitty_scrollback_nvim --config another_config
-- also in this case, whatever you have in the global config will be merged as well
-- ...
end
}) Then in your kitty.conf
Ooof, hopefully this made sense. As I typed it out, I realized how complicated it is. Let me know if it works |
@xfzv awesome looking good now 😎. |
Add an opt-in configuration to use the Neovim icon instead of Vim icon. See ryanoasis/nerd-fonts#1391
Depends on next release of https://github.com/ryanoasis/nerd-fonts potentially
v3.1.0
The text was updated successfully, but these errors were encountered: