Skip to content

Instantly share code, notes, and snippets.

@castor4bit
Last active December 31, 2019 19:50
Show Gist options
  • Select an option

  • Save castor4bit/6671c7d20a395de14034e9ce8b34b5fe to your computer and use it in GitHub Desktop.

Select an option

Save castor4bit/6671c7d20a395de14034e9ce8b34b5fe to your computer and use it in GitHub Desktop.
--- autoload/lexima/insmode.vim 2020-01-01 04:36:47.000000000 +0900
+++ autoload.fixed/lexima/insmode.vim 2020-01-01 04:37:49.000000000 +0900
@@ -81,7 +81,7 @@
" Define imap in the last of the function in order to avoid invalid mapping
" definition when an error occur.
if newchar_flg
- if has('nvim') && a:rule.char == '<CR>' && g:lexima_nvim_accept_pum_with_enter
+ if a:rule.char == '<CR>' && g:lexima_nvim_accept_pum_with_enter
execute printf("inoremap <expr><silent> %s pumvisible() ? \"\\<C-y>\" : lexima#expand(%s, 'i')",
\ a:rule.char,
\ string(lexima#string#to_mappable(a:rule.char))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment