From 495318a5686a84861e5be4566af4b21938411d82 Mon Sep 17 00:00:00 2001 From: servostar Date: Mon, 9 Dec 2024 13:50:52 +0100 Subject: [PATCH] fix: shift tab right indenting --- lua/config/keys.lua | 29 ++++++++++++++++++++++++++++- lua/plugins/mini.lua | 4 ++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/lua/config/keys.lua b/lua/config/keys.lua index 8b103e4..8ab58a6 100644 --- a/lua/config/keys.lua +++ b/lua/config/keys.lua @@ -54,6 +54,22 @@ local keymaps = { cmd = '') + end, + desc = "Shift selection in visual mode right" + }, + { + mode = { 'i' }, + keys = '', + 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 = '', + cmd = function() + vim.cmd('Telescope') + end, + desc = "Open Telescope" } } diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua index d14e05b..e2e68a2 100644 --- a/lua/plugins/mini.lua +++ b/lua/plugins/mini.lua @@ -37,8 +37,8 @@ return { up = '', -- Move current line in Normal mode - line_left = '', - line_right = '', + line_left = nil, + line_right = nil, line_down = '', line_up = '', }