Skip to content

Saghen/blink.indent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blink Indent (blink.indent)

blink.indent provides indent guides with scope on every keystroke (0.1-2ms per render), including on massive files, without Treesitter. These indent guides work in the vast majority of valid code and compute quicker than via Treesitter. If you want something more feature rich, consider using indent-blankline instead.

Install

lazy.nvim

{
  'saghen/blink.indent',
  --- @module 'blink.indent'
  --- @type blink.indent.Config
  opts = {
    -- or disable with `vim.g.indent_guide = false` (global) or `vim.b.indent_guide = false` (per-buffer)
    blocked = {
      buftypes = {},
      filetypes = {},
    },
    static = {
      enabled = true,
      char = '',
      priority = 1,
      -- specify multiple highlights here for rainbow-style indent guides
      -- highlights = { 'BlinkIndentRed', 'BlinkIndentOrange', 'BlinkIndentYellow', 'BlinkIndentGreen', 'BlinkIndentViolet', 'BlinkIndentCyan' },
      highlights = { 'BlinkIndent' },
    },
    scope = {
      enabled = true,
      char = '',
      priority = 1024,
      -- set this to a single highlight, such as 'BlinkIndent' to disable rainbow-style indent guides
      -- highlights = { 'BlinkIndent' },
      highlights = {
        'BlinkIndentOrange',
        'BlinkIndentViolet',
        'BlinkIndentBlue',
        -- 'BlinkIndentRed',
        -- 'BlinkIndentCyan',
        -- 'BlinkIndentYellow',
        -- 'BlinkIndentGreen',
      },
      underline = {
        -- enable to show underlines on the line above the current scope
        enabled = false,
        highlights = {
          'BlinkIndentOrangeUnderline',
          'BlinkIndentVioletUnderline',
          'BlinkIndentBlueUnderline',
          -- 'BlinkIndentRedUnderline',
          -- 'BlinkIndentCyanUnderline',
          -- 'BlinkIndentYellowUnderline',
          -- 'BlinkIndentGreenUnderline',
        },
      },
    },
  },
}

About

Indent guides with scope on every keystroke

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages