diff options
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/neo.vim | 11 | ||||
-rwxr-xr-x | plugin/syntax.vim | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/plugin/neo.vim b/plugin/neo.vim index f1ef113..9114563 100644 --- a/plugin/neo.vim +++ b/plugin/neo.vim @@ -5,3 +5,14 @@ set concealcursor-=n :tnoremap <C-b> <C-\> :tnoremap <Esc> <C-\><C-n> + + +" coc.nvim + +" Confirme the completion +inoremap <expr> <cr> coc#pum#visible() ? coc#pum#confirm() : "\<CR>" +inoremap <silent><expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<C-g>u\<CR>" + +" Use tab to navigate completion +inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>" +inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>" diff --git a/plugin/syntax.vim b/plugin/syntax.vim index 02b9c72..e9a6d7e 100755 --- a/plugin/syntax.vim +++ b/plugin/syntax.vim @@ -1,5 +1,5 @@ " syntax.vim - +" Enable syntaxic coloration (should be enabled by default anyway) syntax enable " Python specific options @@ -12,4 +12,6 @@ let g:syntastic_cpp_compiler_options = "-std=cpp11" let xml_fold=1 let sh_fold=1 +" Limit the lenght of syntax coloration on a line. +" Great performance improvement set synmaxcol=500 |