mirror of
https://github.com/nvim-treesitter/nvim-treesitter-context
synced 2024-09-16 14:14:03 +02:00
No description
lua | ||
plugin | ||
static | ||
.luacheckrc | ||
LICENSE | ||
Makefile | ||
README.md |
nvim-treesitter-context
Lightweight alternative to context.vim implemented with nvim-treesitter.
Install
Plug 'nvim-treesitter/nvim-treesitter'
Plug 'romgrk/nvim-treesitter-context'
Screenshot
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
.