nvim: auto-closing html tags

This commit is contained in:
2026-09-27 07:33:01 +02:00
parent dc1a319165
commit 3c0fc3ae6b
2 changed files with 40 additions and 0 deletions
+7
View File
@@ -207,6 +207,13 @@ A feature-rich Neovim setup optimized for Python, JSON, and CSV development.
- **Linting**: ESLint LSP (fix with `<leader>fx`, or use `<leader>fA` for fix-all actions)
- **Formatting**: Prettier via `<leader>lf`
### HTML (.html)
- **Auto-close tags**: typing `<div` + `>` inserts `</div>` automatically (`nvim-ts-autotag`)
- **Auto-rename tags**: `ciw` on an opening tag renames the matching closing tag
- **Enter between tags**: expands to indented lines via Treesitter indenting
- **Also applies to**: `.vue`, `.tsx`, `.jsx`, `.svelte`, `.astro`, `.xml`, `.php`, `.hbs`
- **Requires** the Treesitter parser for the filetype (already auto-installed for html/vue/tsx)
### CSV (.csv)
- **Treesitter**: Syntax highlighting
- **No wrap**: Full row visibility