No description
Find a file
2021-07-31 21:09:40 -04:00
lua feat: add winvar on context window (closes #50) 2021-06-05 13:06:16 -04:00
plugin initial commit 2020-10-19 05:42:47 -04:00
static implement highlights for partial nodes 2020-10-20 19:10:00 -04:00
.luacheckrc Fix luacheck errors 2020-12-31 11:32:29 +00:00
LICENSE doc: add license 2021-07-31 21:09:40 -04:00
Makefile Fix luacheck errors 2020-12-31 11:32:29 +00:00
README.md Add option to enable/disable plugin at start 2021-05-24 18:43:19 +02:00

nvim-treesitter-context

Lightweight alternative to context.vim implemented with nvim-treesitter.

Install

Plug 'nvim-treesitter/nvim-treesitter'
Plug 'romgrk/nvim-treesitter-context'

Screenshot

theme

Notes

This plugins uses the new neovim WinScrolled event when available to update its context window. Make sure to have a recent neovim build to get this behavior. The fallback behavior is to update its content on CursorMoved.

Configuration

(Default values are shown below)

require'treesitter-context.config'.setup{
    enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
}

Commands

TSContextEnable, TSContextDisable and TSContextToggle.

Appearance

Use the highlight group TreesitterContext to change the colors of the context. Per default it links to NormalFloat.