/nvim-hidesig

Dim annoying sorbet signature for Ruby in Neovim

Primary LanguageLuaApache License 2.0Apache-2.0

Nvim Hidesig

Zulip Chat

Dim Sorbet signature definitions so you can focus on the code.

Quick start

  • Install and set up nvim-treesitter according to their documentation.
  • Install this plugin
  -- Packer
  use "omnisyle/nvim-hidesig"
require("nvim-treesitter.configs").setup {
  highlight = {
      -- ...
  },
  -- ...
  hidesig = {
    enable = true,
    opacity = 0.75, -- opacity for sig definitions
    delay = 200,    -- update delay on CursorMoved and InsertLeave
  }
}

Screenshots

BeforeVsAfter

TODO

  • Dim sorbet sig on buffer changed
  • Cache color calculation and highlight groups

Credits

Thank you for inspiring me and set examples so I can understand nvim treesitter lua api.