feat: add mini plugins

This commit is contained in:
Sven Vogel 2024-11-07 23:54:36 +01:00
parent d7d9402eb3
commit 58c4ff9b99
2 changed files with 48 additions and 27 deletions

View File

@ -32,33 +32,6 @@ local keymaps = {
desc = "Redo last edit that was undone" desc = "Redo last edit that was undone"
}, },
-- --
-- Shift line(s) by one shiftwidth
-- ..............................................
{
mode = { 'n', 'i' },
keys = '<S-tab>',
cmd = '<cmd>:<<cr>',
desc = "Shift cursor line left"
},
{
mode = { 'n', 'i' },
keys = '<tab>',
cmd = '<cmd>:><cr>',
desc = "Shift cursor line right"
},
{
mode = { 'v' },
keys = '<tab>',
cmd = '>gv',
desc = "Shift selection in visual mode right"
},
{
mode = { 'v' },
keys = '<S-tab>',
cmd = '<gv',
desc = "Shift selection in visual right"
},
--
-- Buffer management -- Buffer management
-- .............................................. -- ..............................................
{ {

48
lua/plugins/mini.lua Normal file
View File

@ -0,0 +1,48 @@
--
-- Mini plugin library
--
-- Source: https://github.com/lewis6991/gitsigns.nvim
-- ..............................................
--
-- Author: Sven Vogel
-- Created: 07.11.2024
-- Edited: 07.11.2024
--
-- ==============================================
return {
{
'echasnovski/mini.animate',
version = false
},
{
'echasnovski/mini.comment',
version = false,
opts = {
mappings = {
comment_line = '#',
comment_visual = '#'
}
}
},
{
'echasnovski/mini.move',
version = false,
opts = {
mappings = {
-- Move visual selection in Visual mode. Defaults are Alt (Meta) + hjkl.
left = '<S-tab>',
right = '<tab>',
down = '<C-down>',
up = '<C-up>',
-- Move current line in Normal mode
line_left = '<S-tab>',
line_right = '<tab>',
line_down = '<C-down>',
line_up = '<C-up>',
}
}
}
}