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',
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
-- ..............................................
@ -88,7 +104,7 @@ local keymaps = {
if buf_type == '' then
-- check if buffer is in ignore
in_ignore = false
local in_ignore = false
for _, v in ipairs(ignore) do
if v == file_type then
in_ignore = true
@ -155,6 +171,17 @@ local keymaps = {
vim.lsp.buf.format()
end,
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>',
-- Move current line in Normal mode
line_left = '<S-tab>',
line_right = '<tab>',
line_left = nil,
line_right = nil,
line_down = '<C-down>',
line_up = '<C-up>',
}