nvim-treesitter / nvim-treesitter-context

Show code context
MIT License
2.5k stars 201 forks source link

Feat: tag the ts-context windows so they can be identified programmatically #423

Closed 9ary closed 7 months ago

9ary commented 7 months ago

I use nvim-window-picker to navigate splits. Currently, ts-context's windows show up in the picker. It's not terribly disrupting, but it is a little annoying. I'd like to be able to filter it out, but I can't seem to find a good way to identify the ts-c window.

Setting something like w:isTSContextWindow would be plenty.

9ary commented 7 months ago

Actually, I see I can use [nvim_win_get_config()](https://neovim.io/doc/user/api.html#nvim_win_get_config()) to get the focusable attribute which this plugin sets to false. I guess I need to get a filter added to nwp then.

9ary commented 7 months ago

For future reference: https://github.com/s1n7ax/nvim-window-picker/issues/67