Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override semshi default color scheme #88

Open
kurzacz opened this issue Aug 16, 2020 · 2 comments
Open

Cannot override semshi default color scheme #88

kurzacz opened this issue Aug 16, 2020 · 2 comments

Comments

@kurzacz
Copy link

kurzacz commented Aug 16, 2020

Hello,

I'm new to Neovim and sadly I don't understand how to change default color schemes. My init.vim config file looks as follows:

syntax on
set hls
set expandtab
set textwidth=0
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set backspace=indent,eol,start
set incsearch
set ignorecase
set ruler
set wildmenu
set smarttab
filetype indent on
filetype on
filetype plugin on

" Split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>

call plug#begin('~/.local/share/nvim/plugged')

Plug 'davidhalter/jedi-vim'

" Deoplete Jedi - auto-completion for Python
Plug 'zchee/deoplete-jedi'

Plug 'vim-airline/vim-airline'

" Code highlighting
Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}

call plug#end()


" Code highlighting configuration
function MyCustomHighlights()
    hi semshiParameterUnused ctermfg=117 guifg=#00ff00 cterm=underline gui=underline
endfunction
autocmd FileType python call MyCustomHighlights()

What I don't understand is:

  1. Do I have to put color change after call plug#end() or can I place it right after Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
  2. What exactly I have to put in order to change some color scheme? Both tries mentioned above have brought no effect - I still see unused parameters in the old color. Do I need to somehow restart the plugin?
@oncomouse
Copy link

I had this problem, too. I fixed it by loading the hi commands outside of an autocmd. So, the last five lines of your init.vim can be changed to:

" Code highlighting configuration
hi semshiParameterUnused ctermfg=117 guifg=#00ff00 cterm=underline gui=underline

And the highlighting should change. It did for me, at least.

@kurzacz
Copy link
Author

kurzacz commented Aug 30, 2020

Unfortunately, it didn't help at first. Then I took a closer look at params ctermfg and guifg. I noticed that changing the former did the effect. I don't clearly understand concept of guifg - how it's different from ctermfg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants