configure treesitter
This commit is contained in:
parent
443364e23e
commit
907331f4f2
4 changed files with 176 additions and 5 deletions
|
|
@ -26,6 +26,15 @@ Record every decision here with a short rationale. Append new entries; do not re
|
|||
- Add Oil.nvim for file manipulation (rename/move/delete with buffer sync)
|
||||
- netrw for tree view and preview splits; Oil for operations that would break buffer names
|
||||
- PHP `gf` enhancement via `includeexpr` for WordPress/PHP path resolution
|
||||
- 2025-12-07: Treesitter Phase 5 decisions:
|
||||
- Focus on core languages: PHP, HTML, JavaScript, TypeScript, CSS, Markdown, Lua, Bash, JSON
|
||||
- Enable syntax highlighting with performance safeguard (disable for files >100KB)
|
||||
- Incremental selection: CR to expand, BS to shrink, S-CR for scope expansion
|
||||
- Textobjects for functions (`af`/`if`), classes (`ac`/`ic`), parameters (`aa`/`ia`), conditionals, loops, comments
|
||||
- Movement keymaps: `]f`/`[f` for next/prev function, `]c`/`[c` for classes, `]a`/`[a` for parameters
|
||||
- Parameter swapping: `<leader>a`/`<leader>A` to swap with next/prev parameter
|
||||
- Auto-tag for HTML/PHP/JS/React/TS/Vue files (auto-close, auto-rename, close-on-slash)
|
||||
- Indent disabled initially (experimental); can enable per-filetype if stable
|
||||
|
||||
## Project-Local Configuration (design)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue