Snippets
This commit is contained in:
@@ -35,6 +35,33 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
|
||||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
|
||||
vim.keymap.set({ 'i' }, '<C-J>', function()
|
||||
local ls = require 'luasnip'
|
||||
if ls.choice_active() then
|
||||
ls.change_choice(1)
|
||||
end
|
||||
end, { silent = true })
|
||||
vim.keymap.set({ 'i' }, '<C-k>', function()
|
||||
local ls = require 'luasnip'
|
||||
if ls.choice_active() then
|
||||
ls.change_choice(-1)
|
||||
end
|
||||
end, { silent = true })
|
||||
vim.keymap.set({ 'i', 's' }, '<C-L>', function()
|
||||
local ls = require 'luasnip'
|
||||
if ls.expandable() then
|
||||
ls.expand()
|
||||
elseif ls.in_snippet() then
|
||||
ls.jump(1)
|
||||
end
|
||||
end, { silent = true })
|
||||
vim.keymap.set({ 'i', 's' }, '<C-H>', function()
|
||||
local ls = require 'luasnip'
|
||||
if ls.in_snippet() then
|
||||
ls.jump(-1)
|
||||
end
|
||||
end, { silent = true })
|
||||
|
||||
vim.keymap.set('n', '<C-S-h>', '<C-w>H', { desc = 'Move window to the left' })
|
||||
vim.keymap.set('n', '<C-S-l>', '<C-w>L', { desc = 'Move window to the right' })
|
||||
vim.keymap.set('n', '<C-S-j>', '<C-w>J', { desc = 'Move window to the lower' })
|
||||
|
||||
Reference in New Issue
Block a user