nvim: disable indentscope by default. add ui toggle

This commit is contained in:
Daniel Lundin 2025-02-02 13:42:19 +01:00
parent 8fb4b727ba
commit a82ffe7012
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 6 additions and 1 deletions

View file

@ -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"))

View file

@ -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' }