https://github.com/hrsh7th/vim-gindent
General indentexpr plugin for vim and nvim.
https://github.com/hrsh7th/vim-gindent
Last synced: 5 months ago
JSON representation
General indentexpr plugin for vim and nvim.
- Host: GitHub
- URL: https://github.com/hrsh7th/vim-gindent
- Owner: hrsh7th
- Created: 2022-02-14T10:31:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T03:59:56.000Z (9 months ago)
- Last Synced: 2025-04-19T10:27:40.125Z (6 months ago)
- Language: Lua
- Size: 158 KB
- Stars: 19
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-gindent
General indentexpr plugin for vim and nvim.
# Usage
I don't recommend enabling `vim-gindent` on all filetypes.
You should specify only for filetypes that the indentation doesn't work properly.
```
let g:gindent = {}
let g:gindent.enabled = { -> index(['vim', 'php', ...], &filetype) != -1 }
```# Note
- This plugin provides very basic indentexpr.
- This plugin supports `vim` filetype and the general language that uses `{}` / `()` / `[]` / `<>` for indentation.