vim and nvim
This commit is contained in:
7
nvim/.config/nvim/plugin/lsp.vim
Normal file
7
nvim/.config/nvim/plugin/lsp.vim
Normal 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
|
||||
Reference in New Issue
Block a user