snacks.nvim/docs/words.md
Chris Grieser 5dc749b045
feat(words): add fold_open and set_jump_point config options (#31)
## Description
Added `fold_open` and `set_jump_point` as config options for
`Snacks.words.jump`.
2024-11-08 14:18:39 +01:00

830 B

🍿 words

Auto-show LSP references and quickly navigate between them

⚙️ Config

---@class snacks.words.Config
{
  enabled = true, -- enable/disable the plugin
  debounce = 200, -- time in ms to wait before updating
  notify_jump = false, -- show a notification when jumping
  notify_end = true, -- show a notification when reaching the end
  foldopen = true, -- open folds after jumping
  jumplist = true, -- set jump point before jumping
  modes = { "n", "i", "c" }, -- modes to show references
}

📦 Module

Snacks.words.clear()

Snacks.words.clear()

Snacks.words.is_enabled()

---@param buf number?
Snacks.words.is_enabled(buf)

Snacks.words.jump()

---@param count number
---@param cycle? boolean
Snacks.words.jump(count, cycle)