I'm trying to set theme for fish but it show some bugs #9423
-
Beta Was this translation helpful? Give feedback.
Answered by
faho
Dec 21, 2022
Replies: 1 comment 1 reply
-
Is your gruvbox theme this one? It works by telling your terminal to change its palette colors. And it appears that your vim then sets the palette again, which would end up also changing it in fish. You would have to reset the palette after every command, e.g. by using the function reset_theme --on-event fish_postexec
# Load fish theme configuration
switch "$THEME" # (your `echo` here was superfluous)
case "gruvbox"
source ~/.config/fish/conf.d/gruvbox.fish
case "tokyonight"
source ~/.config/fish/conf.d/tokyonight.fish
end
end All around this is an extremely fickle way of setting a colorscheme and not one I recommend. Do something like https://github.com/sujaybokil/fish-gruvbox and just set fish's color variables. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
datsfilipe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your gruvbox theme this one? It works by telling your terminal to change its palette colors. And it appears that your vim then sets the palette again, which would end up also changing it in fish. You would have to reset the palette after every command, e.g. by using the
fish_postexec
event:All around this is an extremely fickle way of setting a colorscheme and not one I recommend. Do something…