From f99d06e217ffb8542060fc5fed606511bd379b57 Mon Sep 17 00:00:00 2001 From: servostar Date: Sat, 13 Apr 2024 13:12:50 +0200 Subject: [PATCH] added mini and refined keymaps --- lua/keymap.lua | 12 +++++++++++ lua/options.lua | 4 ++-- lua/plugins/mini.lua | 47 ++++++++++++++++++++++++++++++++++++++++++ lua/plugins/noice.lua | 1 - lua/plugins/notify.lua | 6 ++++++ lua/plugins/ufo.lua | 8 ------- 6 files changed, 67 insertions(+), 11 deletions(-) create mode 100644 lua/plugins/mini.lua create mode 100644 lua/plugins/notify.lua diff --git a/lua/keymap.lua b/lua/keymap.lua index 0ccfe94..eed25dd 100644 --- a/lua/keymap.lua +++ b/lua/keymap.lua @@ -125,4 +125,16 @@ return { "Telescope cmdline", { noremap = true, desc = "Open Cmdline" }, }, + { + { "v" }, + "i", + "i", + { noremap = true, desc = "Switch from Visual to Insert mode" }, + }, + { + { "n" }, + "", + "Telescope current_buffer_fuzzy_find", + { noremap = true, desc = "Find" }, + }, } diff --git a/lua/options.lua b/lua/options.lua index 9d2b7f1..ef2b2a2 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -59,10 +59,10 @@ return { git = { icons = { add = "│", - change = "┆", + change = "¦", delete = "", topdelete = "", - changedelete = "│", + changedelete = "¦", untracked = "│", }, }, diff --git a/lua/plugins/mini.lua b/lua/plugins/mini.lua new file mode 100644 index 0000000..2d6ab6d --- /dev/null +++ b/lua/plugins/mini.lua @@ -0,0 +1,47 @@ +return { + { + "echasnovski/mini.clue", -- show next key clue + version = false, + opts = { + window = { + delay = 200, + }, + triggers = { + { mode = "n", keys = "" }, + { mode = "n", keys = "" }, + }, + }, + }, + { + "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 = "", + right = "", + up = "", + down = "", + + line_left = "", + line_right = "", + line_down = "", + line_up = "", + }, + }, + }, +} diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua index 61cee9b..fb987ea 100644 --- a/lua/plugins/noice.lua +++ b/lua/plugins/noice.lua @@ -3,7 +3,6 @@ return { "folke/noice.nvim", event = "VeryLazy", dependencies = { - "rcarriga/nvim-notify", -- fancy notifications "MunifTanjim/nui.nvim", -- gui component library }, opts = function(_, _) diff --git a/lua/plugins/notify.lua b/lua/plugins/notify.lua new file mode 100644 index 0000000..7cccd1c --- /dev/null +++ b/lua/plugins/notify.lua @@ -0,0 +1,6 @@ +return { + { + "rcarriga/nvim-notify", + opts = {}, + }, +} diff --git a/lua/plugins/ufo.lua b/lua/plugins/ufo.lua index 855a5b1..3270ebb 100644 --- a/lua/plugins/ufo.lua +++ b/lua/plugins/ufo.lua @@ -8,14 +8,6 @@ return { "kevinhwang91/promise-async", }, opts = { - preview = { - mappings = { - scrollB = "", - scrollF = "", - scrollU = "", - scrollD = "", - }, - }, -- register treesitter as source for scopes provider_selector = function(_, _, _) return { "treesitter", "indent" }