Dim Sorbet signature definitions so you can focus on the code.
- Install and set up nvim-treesitter according to their documentation.
- Install this plugin
-- Packer
use "omnisyle/nvim-hidesig"
- Add a
hidesig
section in the call torequire("nvim-treesitter.configs").setup()
:
require("nvim-treesitter.configs").setup {
highlight = {
-- ...
},
-- ...
hidesig = {
enable = true,
opacity = 0.75, -- opacity for sig definitions
delay = 200, -- update delay on CursorMoved and InsertLeave
}
}
- Dim sorbet sig on buffer changed
- Cache color calculation and highlight groups
Thank you for inspiring me and set examples so I can understand nvim treesitter lua api.