Show jump locations in the signcolumn
https://github.com/yochem/jumpsigns.nvim.git
Show jump locations in the signcolumn
In the image, the jumpsigns are highlighted in orange. This is not the normal highlight color.
This plugin shows jump locations of different motions in the sign column, to quickly glance which motion to use to get somewhere quickly.
H /M /
L
{ /}
:checkhealth jumpsigns:hi @jumpsigns.sign:nmap <leader>js <Plug>(JumpSignsToggle)Lazy:
{
"yochem/jumpsigns.nvim",
opts = {}
}
For others, use the url from this repo and don't forget to call the setup function somewhere in your config:
require("jumpsigns").setup()
Full configuration with comments in config.lua. This is the default:
{
enabled = true,
priority = 11,
signs = {
window_high = { text = "H" },
window_middle = { text = "M" },
window_low = { text = "L" },
paragraph_prev = { text = "{" },
paragraph_next = { text = "}" },
},
}
All signs configurations also accept an enabled and priority argument to
control the individual jumpsign.
-- Change highlight of all signs
vim.api.nvim_set_hl(0, "@jumpsigns.sign", { fg = "Orange" })
-- or change only one (e.g. for `H`)
vim.api.nvim_set_hl(0, "@jumpsigns.sign.window_high", { fg = "Gray" })
<Plug>(JumpSignsToggle),
<Plug>(JumpSignsEnable), and <Plug>(JumpSignsToggle) are exposed. For
example, to lazy-load on a keymap:
require("jumpsigns").setup({ enabled = false })
vim.keymap.set("n", "<leader>js", "<Plug>(JumpSignsToggle)")