folke / twilight.nvim

🌅 Twilight is a Lua plugin for Neovim 0.5 that dims inactive portions of the code you're editing using TreeSitter.
Apache License 2.0
1.24k stars 21 forks source link

[ Feature Request ] Focus only active window #5

Closed Chaitanyabsprip closed 3 years ago

Chaitanyabsprip commented 3 years ago

The plugin should only highlight the context in the current window and dim text in all other windows

Screenshot:2021-07-14_001

jim-at-jibba commented 3 years ago

I use this plugin (twilight) with https://github.com/TaDaa/vimade to achieve what you want. and it works well

liaden commented 3 years ago

In addition to @jim-at-jibba's suggestion, there is also https://github.com/sunjon/Shade.nvim that works well for this.

folke commented 3 years ago

I just pushed an update that implements this. (see the configuration section of the README)

Be aware, that when you have two windows with the same buffer, then this will still hiighlight the current section in both windows.

When windows have different buffers, they will be fully dimmed.