vim and nvim

This commit is contained in:
2024-10-04 08:49:11 +02:00
parent 3808dc2b23
commit c2b404b17f
12 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
function! OpenCompletion()
if !pumvisible() && ((v:char >= 'a' && v:char <= 'z') || (v:char >= 'A' && v:char <= 'Z'))
call feedkeys("\<C-x>\<C-o>", "n")
endif
endfunction
autocmd InsertCharPre * if &omnifunc != "" | call OpenCompletion() | endif