tidy up and update documentation
This commit is contained in:
parent
530a65a81a
commit
6aeb4ae913
6 changed files with 51 additions and 200 deletions
|
|
@ -275,14 +275,13 @@ Source of truth for the step-by-step rebuild. Keep this concise and up to date.
|
|||
- [x] Philosophy: Formatters are authoritative source of truth; Neovim settings should match formatter rules per filetype
|
||||
- [x] Note: Phase 9.4 will align Neovim editor settings (tabstop, shiftwidth, expandtab) with formatter configurations
|
||||
|
||||
## Phase 9.2 — none-ls setup with project-aware executables
|
||||
- [x] Add `nvimtools/none-ls.nvim`
|
||||
- [x] Create helper function to detect project-local executables (node_modules/.bin/, vendor/bin/, Mason bin)
|
||||
- [x] Configure formatters:
|
||||
- [x] prettier (project-local first, then Mason, then global)
|
||||
- [x] phpcbf (project-local first, then global system install - already available)
|
||||
- [x] stylua (Mason installed)
|
||||
- [x] Add `mfussenegger/nvim-lint` for linting (none-ls removed most linters from builtins)
|
||||
## Phase 9.2 — conform.nvim setup with project-aware executables
|
||||
- [x] Add `stevearc/conform.nvim` (replaced none-ls due to phpcbf preprocessing bug)
|
||||
- [x] Configure formatters (conform has built-in support for all):
|
||||
- [x] prettier (auto-detects project-local, Mason, global)
|
||||
- [x] phpcbf (auto-detects project-local, global; customized for WordPress standard)
|
||||
- [x] stylua (auto-detects project-local, Mason, global)
|
||||
- [x] Add `mfussenegger/nvim-lint` for linting (separate from formatting)
|
||||
- [x] Configure linters via nvim-lint:
|
||||
- [x] eslint_d (project-local first, then Mason, then global - daemon version for speed)
|
||||
- [x] phpcs (project-local first, then global system install - already available)
|
||||
|
|
@ -290,8 +289,9 @@ Source of truth for the step-by-step rebuild. Keep this concise and up to date.
|
|||
- [x] Add format-on-save autocommand with toggle capability (`<leader>lt` to toggle)
|
||||
- [x] Add manual format keymaps: `<leader>lf` (buffer), `<leader>lf` (visual range)
|
||||
- [x] Ensure WordPress coding standards work via phpcs.xml or --standard flag
|
||||
- [x] Search order: project node_modules/.bin/ → project vendor/bin/ → Mason bin → system PATH
|
||||
- [x] Search order handled by conform.nvim automatically: project → Mason → system PATH
|
||||
- [x] Note: Linting runs on BufEnter, BufWritePost, InsertLeave events
|
||||
- [x] Removed none-ls.lua (bug caused blank lines in PHP formatting)
|
||||
|
||||
## Phase 9.3 — Mason formatter/linter installation
|
||||
- [x] Add `WhoIsSethDaniel/mason-tool-installer.nvim` for automated installation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue