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.
This commit is contained in:
parent
9934c2e8f0
commit
596962c4d1
1 changed files with 19 additions and 0 deletions
|
@ -36,3 +36,22 @@ starter.setup({
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_set_hl(0, "MiniCursorword", { bold = true })
|
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 = {} },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue