Fix autocomplete for neovim

This commit is contained in:
Talia 2021-09-25 10:50:27 +02:00
parent 7245177157
commit 617e1f46ca

View file

@ -1,11 +1,11 @@
function s:autocomplete(enabled) function s:autocomplete(enabled)
if a:enabled if a:enabled
for letter in ("abcdefghijklmnopqrstuvwxyz"->split(".\\zs")) for letter in (split("abcdefghijklmnopqrstuvwxyz", ".\\zs"))
exec "inoremap ".letter." ".letter."" exec "inoremap ".letter." ".letter.""
endfor endfor
let g:autcomplete=1 let g:autcomplete=1
else else
for letter in ("abcdefghijklmnopqrstuvwxyz"->split(".\\zs")) for letter in (split("abcdefghijklmnopqrstuvwxyz", ".\\zs"))
exec "iunmap ".letter exec "iunmap ".letter
endfor endfor
unlet g:autocomplete unlet g:autocomplete