nvim: disable indentscope by default. add ui toggle
This commit is contained in:
parent
8fb4b727ba
commit
a82ffe7012
2 changed files with 6 additions and 1 deletions
|
@ -209,3 +209,7 @@ vim.keymap.set("n", "<Leader>uh", "<cmd>InlayHintsToggle<cr>", opts("Toggle inla
|
||||||
vim.keymap.set("n", "<Leader>ul", "<cmd>set invcursorline<cr>", opts("Toggle cursor line"))
|
vim.keymap.set("n", "<Leader>ul", "<cmd>set invcursorline<cr>", opts("Toggle cursor line"))
|
||||||
vim.keymap.set("n", "<Leader>un", "<cmd>set invnumber<cr>", opts("Toggle line numbers"))
|
vim.keymap.set("n", "<Leader>un", "<cmd>set invnumber<cr>", opts("Toggle line numbers"))
|
||||||
vim.keymap.set("n", "<Leader>uw", "<cmd>set invwrap<cr>", opts("Toggle line wrapping"))
|
vim.keymap.set("n", "<Leader>uw", "<cmd>set invwrap<cr>", opts("Toggle line wrapping"))
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<Leader>ui", function()
|
||||||
|
vim.g.miniindentscope_disable = not vim.g.miniindentscope_disable
|
||||||
|
end, opts("Toggle indent scope"))
|
||||||
|
|
|
@ -35,8 +35,9 @@ indentscope.setup({
|
||||||
delay = 10,
|
delay = 10,
|
||||||
animation = indentscope.gen_animation.none(),
|
animation = indentscope.gen_animation.none(),
|
||||||
},
|
},
|
||||||
symbol = '┆',
|
symbol = '│',
|
||||||
})
|
})
|
||||||
|
vim.g.miniindentscope_disable = true
|
||||||
|
|
||||||
require('mini.jump2d').setup({
|
require('mini.jump2d').setup({
|
||||||
mappings = { start_jumping = 'gw' }
|
mappings = { start_jumping = 'gw' }
|
||||||
|
|
Loading…
Add table
Reference in a new issue