added mini and refined keymaps

This commit is contained in:
Sven Vogel 2024-04-13 13:12:50 +02:00
parent e5602dd693
commit f99d06e217
6 changed files with 67 additions and 11 deletions

View File

@ -125,4 +125,16 @@ return {
"<cmd>Telescope cmdline<CR>",
{ noremap = true, desc = "Open Cmdline" },
},
{
{ "v" },
"i",
"<esc>i",
{ noremap = true, desc = "Switch from Visual to Insert mode" },
},
{
{ "n" },
"<C-f>",
"<cmd>Telescope current_buffer_fuzzy_find<CR>",
{ noremap = true, desc = "Find" },
},
}

View File

@ -59,10 +59,10 @@ return {
git = {
icons = {
add = "",
change = "",
change = "¦",
delete = "",
topdelete = "",
changedelete = "",
changedelete = "¦",
untracked = "",
},
},

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

@ -0,0 +1,47 @@
return {
{
"echasnovski/mini.clue", -- show next key clue
version = false,
opts = {
window = {
delay = 200,
},
triggers = {
{ mode = "n", keys = "<Leader>" },
{ mode = "n", keys = "<C-w>" },
},
},
},
{
"echasnovski/mini.animate",
version = false,
config = function(_, opts)
require("mini.pairs").setup(opts)
end,
},
{
"echasnovski/mini.pairs",
version = false,
event = "VeryLazy",
config = function(_, opts)
require("mini.pairs").setup(opts)
end,
},
{
"echasnovski/mini.move",
version = false,
opts = {
mappings = {
left = "<C-S-Left>",
right = "<C-S-Right>",
up = "<C-S-Up>",
down = "<C-S-Down>",
line_left = "<C-S-Left>",
line_right = "<C-S-Right>",
line_down = "<C-S-Down>",
line_up = "<C-S-Up>",
},
},
},
}

View File

@ -3,7 +3,6 @@ return {
"folke/noice.nvim",
event = "VeryLazy",
dependencies = {
"rcarriga/nvim-notify", -- fancy notifications
"MunifTanjim/nui.nvim", -- gui component library
},
opts = function(_, _)

6
lua/plugins/notify.lua Normal file
View File

@ -0,0 +1,6 @@
return {
{
"rcarriga/nvim-notify",
opts = {},
},
}

View File

@ -8,14 +8,6 @@ return {
"kevinhwang91/promise-async",
},
opts = {
preview = {
mappings = {
scrollB = "<C-b>",
scrollF = "<C-f>",
scrollU = "<C-u>",
scrollD = "<C-d>",
},
},
-- register treesitter as source for scopes
provider_selector = function(_, _, _)
return { "treesitter", "indent" }