Skip to content

sle-c/nvim-hidesig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Languages

  • Lua 91.1%
  • Ruby 7.7%
  • Other 1.2%