patstockwell / vim-monokai-tasty

VIM Colour scheme
390 stars 51 forks source link

Does it work on Windows? #10

Closed georgeanderson closed 5 years ago

georgeanderson commented 5 years ago

I've tried using it in Windows with Neovim but it doesn't complete initializing nvim. Any tips on how to troubleshoot or gather more details about what's happening under the hood?

patstockwell commented 5 years ago

Hi @georgeanderson, Thanks for the feedback, I haven't had a chance to try it on windows yet. Does neovim start at all when the colorscheme is set? To help debug the problem, there is a console output in vim that can be viewed by typing :messages. This will show you a list of all the messages echoed at the vim command line. To check that vim-monokai-tasty.vim is being found at all, you could add an echo statement to the top of the file like so:

echom "The monokai tasty colour was parsed"

Then check :messages, (if you're able to start nvim at all!). (echom is slightly different from echo in that the message won't just flash and disappear at the vim command line, but it will also be logged in messages.)

Also, if you go back to your default colour, you could check the list of available colours once vim has started by typing :colorscheme <Tab>. This will display a list that you can tab through and search. Perhaps vim-monokai-tasty will be there if the plugin was found on load.

Let me know how those suggestions go!

georgeanderson commented 5 years ago

Thanks @patstockwell. I won't have access to a Windows machine in the next few days until I am back to work, so expect some delay on my feedback there. Appreciate your quick response.

Merry Christmas!

georgeanderson commented 5 years ago

I did a fresh install and as soon as PlugInstall finished I could set it just fine and it worked. However, if I modify my init.vim (I'm using neovim) to include it by default it doesn't finish loading and dies with the following message:

λ nvim
Error detected while processing C:\Users\george_anderson\AppData\Local\nvim\init.vim:
line    9:
E185: Cannot find color scheme 'vim-monokai-tasty'
Press ENTER or type command to continue

I reverted colorscheme vim-monokai-tasty to my previous colorscheme and everything worked again. Any clues on why it is not initializing with neovim?

georgeanderson commented 5 years ago

Ha, nevermind. I just figured that I can't set the colorscheme before the Plug declaration. You can close the issue but I would consider adding that to the documentation for helping future dummies like me.

patstockwell commented 5 years ago

Thanks for the feedback @georgeanderson, glad we got it sorted. I'll add a little note to the README. Merry Christmas to you too!