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>", "<cmd>Telescope cmdline<CR>",
{ noremap = true, desc = "Open Cmdline" }, { 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 = { git = {
icons = { icons = {
add = "", add = "",
change = "", change = "¦",
delete = "", delete = "",
topdelete = "", topdelete = "",
changedelete = "", changedelete = "¦",
untracked = "", 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", "folke/noice.nvim",
event = "VeryLazy", event = "VeryLazy",
dependencies = { dependencies = {
"rcarriga/nvim-notify", -- fancy notifications
"MunifTanjim/nui.nvim", -- gui component library "MunifTanjim/nui.nvim", -- gui component library
}, },
opts = function(_, _) 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", "kevinhwang91/promise-async",
}, },
opts = { opts = {
preview = {
mappings = {
scrollB = "<C-b>",
scrollF = "<C-f>",
scrollU = "<C-u>",
scrollD = "<C-d>",
},
},
-- register treesitter as source for scopes -- register treesitter as source for scopes
provider_selector = function(_, _, _) provider_selector = function(_, _, _)
return { "treesitter", "indent" } return { "treesitter", "indent" }