GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nvimdev/indentmini.nvim: A minimal and blazing fast indentline plugin

BranchesTags
Open more actions menu

Latest commit

 

History

204 Commits
204 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bench
bench
 
 
lua/indentmini
lua/indentmini
 
 
plugin
plugin
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.stylua.toml
.stylua.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

indentmini.nvim

An indentation plugin born for the pursuit of minimalism, speed and stability.
It renders in the NeoVim screen redraw circle and should keep the NeoVim fast.

Install

Install with any plugin manager or as a NeoVim package.

Configuration

Key Description Default
char Character to draw the indentation guides <BAR>
enabled Default state of the plugin true
exclude Disable in these filetypes {}
exclude_nodetype TreeSitter classes where guides are not drawn {}
key Hotkey to toggle the guides ''
minlevel Minimum level where indentation is drawn 0
only_current only highlight current indentation level false

Example

The plugin supports lazy-loading:

-- Either declare `vim.g.indentmini_key` before you load the plugin:
vim.g.indentmini_key = '<F5>'

-- or use your plugin manager, for example Lazy.nvim:
{
    url = 'https://github.com/nvimdev/indentmini.nvim',
    cmd = { 'IndentToggle', 'IndentEnable', 'IndentDisable' },
    keys = {
        {'<F5>', '<Cmd>IndentToggle<CR>', desc = 'Toggle indent guides'},
    },
    lazy = true,
    config = function()
        require("indentmini").setup({
            only_current = false,
            enabled = false,
            char = '▏',
            key = '<F5>', -- optional, can be set here if you don't lazy-load
            minlevel = 2,
            exclude = { 'markdown', 'help', 'text', 'rst' },
            exclude_nodetype = { 'string', 'comment' }
        })
    end
}

Toggle functionality

You can toggle the guides via:

Commands

  • :IndentToggle - Toggle indent guides on/off
  • :IndentEnable - Enable indent guides
  • :IndentDisable - Disable indent guides

Hotkey

For lazy-loading setups, set the global variable before the plugin loads:

vim.g.indentmini_key = '<F5>'

For non-lazy setups, use the key option in setup():

require("indentmini").setup({
    key = '<F5>',
})

API

local indentmini = require("indentmini")
indentmini.toggle()
indentmini.enable()
indentmini.disable()

Colours

The plugin uses IndentLine* highlight groups and provides no default values.

vim.cmd.highlight('IndentLine guifg=#123456')
vim.cmd.highlight('IndentLineCurrent guifg=#123456')

Licence

MIT

About

A minimal and blazing fast indentline plugin

Topics

neovimneovim-plugin

Resources

Readme
MIT license
Activity
Custom properties

Stars

280 stars

Watchers

7 watching

Forks

16 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.