semshi
semshi copied to clipboard
Cannot override semshi default color scheme
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:
- Do I have to put color change after
call plug#end()or can I place it right afterPlug 'numirias/semshi', {'do': ':UpdateRemotePlugins'} - 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?
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.
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?