# indent-o-matic **Repository Path**: mirrors_rstacruz/indent-o-matic ## Basic Information - **Project Name**: indent-o-matic - **Description**: Dumb automatic fast indentation detection for Neovim written in Lua - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-28 - **Last Updated**: 2025-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # indent-o-matic Dumb automatic fast indentation detection for Neovim written in Lua ## How it works Instead of trying to be smart about detecting an indentation using statistics, it will find the first thing that looks like a standard indentation (tab or 8/4/2 spaces) and assume that's what the file's indentation is This has the advantage of being fast and very often correct while being simple enough that most people will understand what it will do predictably ## Requirements - Neovim >= 4.4 ## Installation Can be installed through any standard Vim package manager, configuration is optional ## Configuration Configuration is done in Lua: ```lua require('indent-o-matic').setup { -- The values indicated here are the defaults -- Number of lines without indentation before giving up (use -1 for infinite) max_lines = 2048, -- Space indentations that should be detected standard_widths = { 2, 4, 8 }, } ``` You can also directly configure it from a Vim file by using the `lua` instruction: ```vim lua <