SmiteshP / nvim-navic

Simple winbar/statusline plugin that shows your current code context
Apache License 2.0
1.35k stars 49 forks source link

[feat] add update_in_insert and lazy_update_in_insert options #142

Open spflaumer opened 4 months ago

spflaumer commented 4 months ago

The update_in_insert and lazy_update_in_insert options, with their respective vim.b.update_in_insert and vim.b.lazy_update_in_insert counterparts, allow the user of the plugin to enable updating the context while in Insert mode.

Currently, the information returned by get_data, and it's get_location wrapper, is the same as when first entering Insert mode. Now the context will update in insert mode, providing a fresh context with the "CursorHoldI" and "CursorMovedI" events.