Edit icon of vi_mode without changing anything else from feline #81
-
Is it possible? I want to specify parameters for single components, for example changing the icon of the vi_mode component. This is my config: return {
"freddiehaddad/feline.nvim",
config = function(_, _opts)
require("feline").setup()
local lighthaus_theme = {
fg = "#DCD7BA",
bg = "#1F1F28",
black = "#16161D",
skyblue = "#16161D",
cyan = "#6A9589",
green = "#76946A",
-- oceanblue = "#658594",
oceanblue = "#1F1F28",
magenta = "#D27E99",
orange = "#FFA066",
red = "#E82424",
violet = "#957FB8",
white = "#DCD7BA",
yellow = "#FF9E3B",
}
require("feline").use_theme(lighthaus_theme)
-- require("feline").winbar.setup()
end,
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
To answer your question. Yes, this can be done. There's an example here of how to create and customize components as well as lots of examples in the documentation. Here's a custom example: https://github.com/freddiehaddad/nvim/blob/main/lua/plugins/feline.lua plus link to the specific vi-mode section: https://github.com/freddiehaddad/nvim/blob/209754268058239818e4c8cd49e4342d64ce3abe/lua/plugins/feline.lua#L326-L339 What you're wanting to do it sounds like is modify a component to change it's behavior. The documentation shows how to do that. I think in combination with the links I shared, you should be able to accomplish what you want. I can elaborate more if needed. Please let me know. |
Beta Was this translation helpful? Give feedback.
-
Yeah, sorry about that. Because the issue is closed, I can't update the link. :( |
Beta Was this translation helpful? Give feedback.
That's great feedback and something I would like to implement. When I have a few days to sit and think it through I will work on it. I think it can be accomplished without breaking people's configs. That's always the tricky part.