Compare commits

...

2 Commits

Author SHA1 Message Date
67b9c6b45a Check tmux exists before loading osc52 2020-07-19 20:25:29 +01:00
01059ac01a Enable YouCompleteMe on Windows 2020-07-19 20:25:29 +01:00

10
vimrc
View File

@ -36,10 +36,7 @@ endfor
Pack 'mkitt/tabline.vim' Pack 'mkitt/tabline.vim'
" YouCompleteMe " YouCompleteMe
" TODO: Try out neovim completion plugins to see if they are better Pack 'ycm-core/YouCompleteMe', {'type': 'opt'}
if !platform#is_windows()
Pack 'ycm-core/YouCompleteMe',
\ {'type': 'opt', 'do': '!./install.py --clang-completer'}
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:ycm_min_num_of_chars_for_completion = 1 let g:ycm_min_num_of_chars_for_completion = 1
@ -53,7 +50,7 @@ if !platform#is_windows()
let g:ycm_warning_symbol = '▸' let g:ycm_warning_symbol = '▸'
let g:ycm_goto_buffer_command = 'horizontal-split' let g:ycm_goto_buffer_command = 'horizontal-split'
let g:ycm_use_clangd = 0 let g:ycm_use_clangd = 0
endif
" ultisnips - snippet engine " ultisnips - snippet engine
Pack 'SirVer/ultisnips' Pack 'SirVer/ultisnips'
Pack 'honza/vim-snippets' Pack 'honza/vim-snippets'
@ -203,7 +200,8 @@ Pack 'jrozner/vim-antlr'
" Plugins for remote integrations " Plugins for remote integrations
Pack 'greymd/oscyank.vim', {'type': 'opt'} Pack 'greymd/oscyank.vim', {'type': 'opt'}
let g:use_osc52 = trim(system('tmux show-options -g set-clipboard')) ==# 'set-clipboard on' let g:use_osc52 = $TMUX !=# '' &&
\ trim(system('tmux show-options -g set-clipboard')) ==# 'set-clipboard on'
if g:use_osc52 if g:use_osc52
packadd oscyank.vim packadd oscyank.vim
endif endif