mirror of
https://github.com/arkorty/Neolite.git
synced 2026-03-17 16:51:42 +00:00
Add keymaps for tab-completions navigation
Changes to be committed:
modified: lua/completions.lua
This commit is contained in:
@@ -32,6 +32,9 @@ cmp.setup({
|
|||||||
},
|
},
|
||||||
mapping = {
|
mapping = {
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
||||||
|
["<C-k>"] = cmp.mapping.scroll_docs(-4),
|
||||||
|
["<C-j>"] = cmp.mapping.scroll_docs(4),
|
||||||
|
["<C-e>"] = cmp.mapping.abort(),
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
|
|||||||
Reference in New Issue
Block a user