-
-
Notifications
You must be signed in to change notification settings - Fork 52
add preselect confirm mode #256
base: master
Are you sure you want to change the base?
add preselect confirm mode #256
Conversation
|
I think we should implement This PR has no vim side implementation so I can't merge it. Sorry. |
|
@oberblastmeister Could you test select-option branch? |
|
just curious, why must it be a vimscript implementation? |
|
Because the Lua's keymapping is problematic, I think. |
In what way? As in, too verbose? |
|
For example, nvim-compe is providing the |
|
I think it does work, one can do that: vim.api.nvim_set_keymap("i", "<CR>", "v:lua.OnEnter()", {noremap = true, expr = true})which is what I am doing. Would be possible to just call |
|
Hm... I can't think it is better... (It has no difference for my eyes) Nowvim.api.nvim_set_keymap("i", "<CR>", "compe#complete('<CR>')", {noremap = true, expr = true})Proposedvim.api.nvim_set_keymap("i", "<CR>", "v:lua.compe.complete('<CR>')", {noremap = true, expr = true}) |
|
From this perspective it really changes very little, but would allow for getting rid of viml completely. |
|
I think both implementations are okay on the outside and expr mappings definately work with lua. However, lua is trying to be a first class citizen in neovim and since this plugin doesn't support |
49d1dfc to
ab623db
Compare
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closes #254. I added a new confirm function in lua because I can't access the
Configin vimscript. Also lua is much easier to write and probably faster as a side benefit. To use it you will have to do