Closed mtklr closed 1 year ago
Hey matt!
Thanks for pointing your issue. In your .vimrc
, using vim, not neovim, could you try:
packadd! srcery-vim
colorscheme srcery
Report back if possible 🙂
Hi,
Yes, with srcery-vim
in ~/.vim/pack/plugin/opt/srcery-vim
and packadd! srcery-vim
, this does work.
~/.vim/pack/plugin/start/srcery-vim
with or without packadd!
does not work.
Thanks:)
Okay, so this is because of how Vim packages work. We need to update documentation to explain how to install srcery with natives packages.
What do you think @roosta @MindTooth ?
~/.vim/pack/plugin/start/srcery-vim
with or withoutpackadd!
does not work.
I can't reproduce this... If I move from opt
to start
and remove packadd!
everything is loaded correctly.
I'm sorry to hear that it might have caused issues with Vim and manually/packadd
setups.
From the official help (:help pack-add
), it should reside under pack/*/opt/srcery-vim
. If that does not work, we need to debug this.
@Guergeiro I'll review your pull request. Hopefully we can provide a fix. 😄
Sorry to cause problems, this seems like "user error" (me) likely, though I just tried clearing any/all shell customizations, started with fresh .vim
directory, re-cloned srcery, and still getting errors.
(Could be weird disk/OS related thing on my end maybe.)
Thanks for your time looking into it. I can deal with workarounds for now.
@mtklr it was definitely our fault! Let me suggest another thing. Can you try setting your runtimepath
in your .vimrc
like you did for neovim? In this case to try to load on the .vim/pack/*/start
directory, not the opt
.
Sure.
with ~/.vim/pack/plugin/start/srcery-vim
, and this ~/.vimrc
:
set runtimepath^=~/.vim "runtimepath+=~/.vim/after
let &packpath = &runtimepath
" also tried just this:
" set runtimepath+=~/.vim
colorscheme srcery
Same errors as mentioned - (checking out 34c87e4 it works. From the commit after this (27d66bc) it does not work).
On the chance that this may help, I also tried putting srcery.vim
in ~/.vim/colors
as the readme says, and the resulting errors are different.
vim
with ~/.vim/colors/srcery.vim
:
E121: Undefined variable: g:srcery_bg_passthrough
E15: Invalid expression: g:srcery_bg_passthrough == 1 && !has('gui_running')
line 422:
E121: Undefined variable: s:green
E116: Invalid arguments for function <SNR>3_HL
line 434:
E121: Undefined variable: g:srcery_hard_black_terminal_bg
E15: Invalid expression: g:srcery_hard_black_terminal_bg == 1 && has('terminal'
line 447:
E121: Undefined variable: s:bright_red
E116: Invalid arguments for function <SNR>3_HL
line 448:
E121: Undefined variable: s:bright_yellow
E116: Invalid arguments for function <SNR>3_HL
...
vim
with '~/.vim/pack/plugin/start/srcery-vim`:
E121: Undefined variable: g:srcery#palette
E15: Invalid expression: g:srcery#palette.bright_cyan
line 25:
E121: Undefined variable: g:srcery#palette
E15: Invalid expression: g:srcery#palette.bright_white
line 28:
E121: Undefined variable: g:srcery#palette
E15: Invalid expression: g:srcery#palette.orange
line 29:
E121: Undefined variable: g:srcery#palette
E15: Invalid expression: g:srcery#palette.bright_orange
line 30:
E121: Undefined variable: g:srcery#palette
E15: Invalid expression: g:srcery#palette.hard_black
line 31:
E121: Undefined variable: g:srcery#palette
E15: Invalid expression: g:srcery#palette.xgray1
...
Thanks!
In the case of the "manual" approach of the readme, its basically the same issue. One user already opened an issue #89
In the case of the "manual" approach of the readme, its basically the same issue. One user already opened an issue #89
Ok, thanks - sorry for the extra work - should I close this, then?
No need @mtklr we will close this in our upcoming pr #90 Thanks for finding this issue!
hi,
I love Srcery! Having some issues recently though.
On my end, commit 34c87e4df4d19b47af3dbfa7f040781293b2b6de works without issue from
~/.vim/pack/plugin/opt/srcery-vim
or~/.vim/pack/plugin/start/srcery-vim
.Checking out the commit after that (27d66bc14636889a11021feecb13d38187195b22) I get a bunch of errors like this:
I'm testing this with a minimal
.vimrc
:nvim
doesn't seem to have this issue, with a minimal.config/nvim/init.vim
:Though it only works if using
~/.vim/pack/plugin/start/srcery-vim
.I've never had a problem until I pulled from github today and received these errors.
nvim version: 0.8.1 vim version: VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 14 2021 20:35:46) (this is on macos)
(Maybe I should forget about vim and stick to nvim)
Thanks, matt