nvim: auto-closing html tags
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user