From 596962c4d1a303fdd23a8bb685e3f8002f355a7e Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 7 Aug 2023 11:27:52 +0200 Subject: [PATCH] nvim: Add more bracket movement options Enabled bracketed module of mini.nvim plugin, which enables many (many!) more bracket jumping options. Some examples are moving through the bufferlist, comments, files, jumplist, etc with [ and ]. Integrated into whichkey through pre-defined 'desc' options for each mapping. --- nvim/.config/nvim/lua/plugins/config/mini.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nvim/.config/nvim/lua/plugins/config/mini.lua b/nvim/.config/nvim/lua/plugins/config/mini.lua index 114fa6b..8a9b55c 100644 --- a/nvim/.config/nvim/lua/plugins/config/mini.lua +++ b/nvim/.config/nvim/lua/plugins/config/mini.lua @@ -36,3 +36,22 @@ starter.setup({ }) vim.api.nvim_set_hl(0, "MiniCursorword", { bold = true }) + +require("mini.bracketed").setup({ + { + buffer = { suffix = "b", options = {} }, + comment = { suffix = "c", options = {} }, + conflict = { suffix = "", options = {} }, + diagnostic = { suffix = "d", options = {} }, + file = { suffix = "f", options = {} }, + indent = { suffix = "", options = {} }, -- disable since we use indentscope above + jump = { suffix = "j", options = {} }, + location = { suffix = "l", options = {} }, + oldfile = { suffix = "o", options = {} }, + quickfix = { suffix = "q", options = {} }, + treesitter = { suffix = "t", options = {} }, + undo = { suffix = "", options = {} }, -- disable since I don't need it + window = { suffix = "w", options = {} }, + yank = { suffix = "y", options = {} }, + }, +})