Open Kampouse opened 3 years ago
Hi, sorry for not acknowleding your issue, it seemed to have vanished from my mind. If I understood correctly:
default
theme--theme=/the/path/to/your/theme
.Without modifying eovim
, I think there is no way around this.
I can understand this is indeed not very convenient.
A simple "solution" would be for eovim
to rely on an environment variable (e.g. EOVIM_THEME=/the/path/to/your/theme
) but I don't find it very "gracious".
Indeed, eovim is configured through vimscript, and I not quite happy with such "exceptions". Ideally, the theme could be provided through vimscript. However, this maybe require "hot-loading" the edje theme, I am not sure how difficult this is. I can try, though, it seems like a nice feature.
I'd propose the following use-case. Please let me know if you find it acceptable:
There should be two directories for themes:
<install_prefix>/eovim/themes/
: this one currently exists, but probably requires root permissions;<home>/.config/eovim/themes/
: this one does not exist, and would not require root permissions.The list of available themes would be constructed as follows:
A theme could be selected through vimscript (i.e. init.vim) with:
let g:eovim_theme = "<theme name>"
Where <theme name>
would be something like default
or a custom name.
If g:eovim_theme
contains the path to a .edj
(e.g. /tmp/dev/theme.edj
) file, then this file is taken. So there would be two lookup options (ie. by name or by path).
Oh, and I would love to see the eovim theme tutorial you mentioned.
Hey i was digging around your project i been able to modify my theme but there a thing that i was curious to see if this possible: keep your "edited" theme like you only nead to do a eovim --theme i tried to rename my new file as the 'default' one and eovim did not like that returning me with "permission denied "while not running it as a sudoer :( ounce after that you will only nead to use eovim to use your edited theme
and also i made a eovim theme tutorial...