diff options
author | ache <ache@ache.one> | 2024-01-05 17:49:02 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2024-01-05 17:49:10 +0100 |
commit | 2074f6affc0395893fd3f82c11cf46e96cd49274 (patch) | |
tree | eb06f8bcb61528012809350a6537edf32f50c6b4 | |
parent | Remove syntax plugin (diff) |
Add comment to current config
-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 |