Changed YCM highlighting for better readability and fixed a typo in the README
This commit is contained in:
parent
de78100473
commit
b63104992b
@ -84,7 +84,7 @@ If you want to be able to push changes back to the repository, setup a new git d
|
||||
```bash
|
||||
cd ~/.config/nvim
|
||||
git init
|
||||
git remote add origin git remote add origin git@dennispotter.eu:Dennis/neovim-config.git
|
||||
git remote add origin git@dennispotter.eu:Dennis/neovim-config.git
|
||||
git pull origin master
|
||||
```
|
||||
Again, to make sure the environment stays up to date, set
|
||||
|
18
init.vim
18
init.vim
@ -11,12 +11,6 @@ let python_highlight_all = 1
|
||||
|
||||
set hidden
|
||||
|
||||
" Write this in your vimrc file
|
||||
let g:ale_lint_on_text_changed = 'never'
|
||||
" " You can disable this option too
|
||||
" " if you don't want linters to run on opening a file
|
||||
let g:ale_lint_on_enter = 0
|
||||
|
||||
" put leader to space
|
||||
map <space> <leader>
|
||||
map <space><space> <leader><leader>
|
||||
@ -50,6 +44,14 @@ nnoremap <leader>gf :YcmCompleter GoToDefinition<CR>
|
||||
nnoremap <leader>gg :YcmCompleter GoToDefinitionElseDeclaration<CR>
|
||||
nnoremap <leader>gd :YcmCompleter GetDoc<CR>
|
||||
|
||||
" Fix colors of YCM
|
||||
highlight YcmWarningLine guibg=Cyan ctermbg=Cyan
|
||||
highlight YcmWarningSign guibg=Cyan ctermbg=Cyan
|
||||
highlight YcmWarningSection guibg=Cyan ctermbg=Cyan
|
||||
highlight YcmErrorSection guibg=Red ctermbg=Red
|
||||
highlight YcmErrorLine guibg=Red ctermbg=Red
|
||||
highlight YcmErrorSign guibg=Red ctermbg=Red
|
||||
|
||||
" make YCM compatible with UltiSnips (using supertab)
|
||||
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
|
||||
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
||||
@ -68,7 +70,7 @@ function! ToggleHiddenAll()
|
||||
TagbarToggle
|
||||
endfunction
|
||||
|
||||
nnoremap <silent> <leader>h :call ToggleHiddenAll()<CR>
|
||||
nnoremap <silent> <leader>; :call ToggleHiddenAll()<CR>
|
||||
|
||||
call plug#begin()
|
||||
Plug 'SirVer/ultisnips'
|
||||
@ -96,5 +98,3 @@ Plug 'bfredl/nvim-ipy'
|
||||
Plug 'sakhnik/nvim-gdb'
|
||||
call plug#end()
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user