Overview
Indent Blankline adds visual indentation guides to your code, making it easier to see code structure and nesting levels. It uses Treesitter for intelligent context highlighting. Plugin: indent-blankline.nvim Config File:lua/user/indentline.lua
Features
- Visual indentation guides
- Current context highlighting
- Treesitter integration
- Smart exclusions for special buffers
- Customizable indent character
Configuration
Indent Character
The configuration uses a thin vertical line character:"│"- Full vertical line"▎"- Slightly thicker line
Context Highlighting
The plugin highlights the indentation scope of the current cursor position:Excluded Filetypes
Indent guides are hidden in these special buffers:Excluded Buffer Types
Treesitter Integration
Indent Blankline uses Treesitter for intelligent context detection:Context Patterns
These code structures are recognized for context highlighting:- Functions and methods
- Control flow (if/while/for)
- Classes and objects
- JSX elements
- Try/catch blocks
- Import statements
Display Options
Basic Settings
indentLine_enabled- Enable the pluginshow_trailing_blankline_indent- Don’t show guides on empty trailing linesshow_first_indent_level- Show indent guide at first level
Color Column Workaround
Setup Function
Customization
Enable Context Start Line
Show an underline at the start of the current context:Colored Indent Guides
Use different colors for different indent levels:Show Space Characters
Show End of Line
Add More Excluded Filetypes
Change Indent Character
Visual Examples
Without Indent Blankline
With Indent Blankline
With Context Highlighting
When cursor is onprint("Hello"), the indent guides for the current if block are highlighted.
Performance
Indent Blankline is designed for performance:- Uses Treesitter for efficient parsing
- Excluded from special buffers to reduce overhead
- Smart context calculation
Troubleshooting
Guides Not Showing
-
Check if the filetype is excluded:
-
Verify Treesitter is installed:
-
Check if indentation is set correctly:
Context Not Highlighting
Ensure Treesitter parser is installed for your language:Related Configuration
- Treesitter - Powers context detection
- Options - Tab and space settings
- Alpha - Excluded from dashboard

