blink keymap c-x
This commit is contained in:
parent
b760e60ce7
commit
2704af98e9
14
init.lua
14
init.lua
|
|
@ -936,6 +936,12 @@ do
|
|||
--
|
||||
-- See `:help blink-cmp-config-keymap` for defining your own keymap
|
||||
preset = 'enter',
|
||||
['<C-x>'] = {
|
||||
function(cmp) cmp.show() end,
|
||||
'show',
|
||||
'show_documentation',
|
||||
'hide_documentation',
|
||||
},
|
||||
|
||||
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
|
||||
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
|
||||
|
|
@ -974,15 +980,11 @@ do
|
|||
|
||||
-- Luasnip choice node navigation
|
||||
vim.keymap.set({ 'i', 's' }, '<C-l>', function()
|
||||
if require('luasnip').choice_active() then
|
||||
require('luasnip').change_choice(1)
|
||||
end
|
||||
if require('luasnip').choice_active() then require('luasnip').change_choice(1) end
|
||||
end, { desc = 'LuaSnip: next choice' })
|
||||
|
||||
vim.keymap.set({ 'i', 's' }, '<C-h>', function()
|
||||
if require('luasnip').choice_active() then
|
||||
require('luasnip').change_choice(-1)
|
||||
end
|
||||
if require('luasnip').choice_active() then require('luasnip').change_choice(-1) end
|
||||
end, { desc = 'LuaSnip: previous choice' })
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue