/virt_context.nvim

Show code context on end of line and top of window, powered by treesitter.

Primary LanguageLuaApache License 2.0Apache-2.0

virt_context.nvim

Display treesitter context by using virtual text.

Status

Currently worked on end of line and bottom, top is not yet possible due to #1

Setup

require('virt-context').setup({
  enable = true    -- set it to false to disable
  position = "eol" -- top is not yet possible
})

End of Line

Context followed by your cursor.

Screen.Recording.2022-04-22.at.10.35.24.AM.mov

Top

Not working

Bottom

Context stay at the bottom of the window.