viniciusmuller/djanho

Please how can i make this work

Opened this issue · 3 comments

Please how can i make this work

Hi @Stephan-MC, could you provide some info about what are you are trying to do and the problem you're having?

Qosc commented

I don't know how to use this either, I put the json in the same folder as djanho.exe, then ran djanho.exe mytheme.json on windows and nothing happened.

Your problem is not clear but please follow these steps, they worked for me.
Clone the repository somewhere: git clone --depth 1 https://github.com/viniciusmuller/djanho.git
Move into the repository: cd djanho
Build the executable: cargo build --release (P.S. you need to have rust installed)
This should work without any errors.
Now, copy the executable out to any folder you like. I am moving it out to the folder you cloned the repository to (the parent folder) cp ./target/release/djanho ../
Go to the folder you copied the executable to cd ../ in my case
Run the executable to check for any errors till now djanho --help
If it works till now and doesn't further, then there is probably an issue with your colorscheme.json
Now run djanho -l colorscheme.json to convert the colorscheme into a lua file.
(If you do not want lua but a vimscript file, omit the -l flag)
you will get a file named generated.lua in the folder you ran the command from.
to use it in neovim you shall move the colorscheme into colors folder
mkdir -p ~/.config/nvim/colors
mv generated.lua ~/.config/nvim/colors/colorscheme-name.lua