fix: shift tab right indenting

This commit is contained in:
Sven Vogel 2024-12-09 13:50:52 +01:00
parent 598c68d016
commit 495318a568
2 changed files with 30 additions and 3 deletions

View File

@ -54,6 +54,22 @@ local keymaps = {
cmd = '<gv', cmd = '<gv',
desc = "Shift selection in visual right" desc = "Shift selection in visual right"
}, },
{
mode = { 'i' },
keys = '<tab>',
cmd = function()
vim.cmd(':>')
end,
desc = "Shift selection in visual mode right"
},
{
mode = { 'i' },
keys = '<S-tab>',
cmd = function()
vim.cmd(':<')
end,
desc = "Shift selection in visual right"
},
-- --
-- Window controls -- Window controls
-- .............................................. -- ..............................................
@ -88,7 +104,7 @@ local keymaps = {
if buf_type == '' then if buf_type == '' then
-- check if buffer is in ignore -- check if buffer is in ignore
in_ignore = false local in_ignore = false
for _, v in ipairs(ignore) do for _, v in ipairs(ignore) do
if v == file_type then if v == file_type then
in_ignore = true in_ignore = true
@ -155,6 +171,17 @@ local keymaps = {
vim.lsp.buf.format() vim.lsp.buf.format()
end, end,
desc = "Format buffer with current LSP" desc = "Format buffer with current LSP"
},
--
-- Telescope
-- ..............................................
{
mode = { 'n', 'i', 'v' },
keys = '<C-g>',
cmd = function()
vim.cmd('Telescope')
end,
desc = "Open Telescope"
} }
} }

View File

@ -37,8 +37,8 @@ return {
up = '<C-up>', up = '<C-up>',
-- Move current line in Normal mode -- Move current line in Normal mode
line_left = '<S-tab>', line_left = nil,
line_right = '<tab>', line_right = nil,
line_down = '<C-down>', line_down = '<C-down>',
line_up = '<C-up>', line_up = '<C-up>',
} }