tidy up and update documentation
This commit is contained in:
parent
530a65a81a
commit
6aeb4ae913
6 changed files with 51 additions and 200 deletions
10
README.md
10
README.md
|
|
@ -131,7 +131,7 @@ Buffer-local keymaps available when an LSP client attaches:
|
|||
| n | `gI` | LSP: implementation |
|
||||
| n | `K` | LSP hover |
|
||||
|
||||
### None-ls (Formatting) `lua/plugins/none-ls.lua`
|
||||
### Conform (Formatting) `lua/plugins/conform.lua`
|
||||
|
||||
#### Keymaps
|
||||
|
||||
|
|
@ -367,7 +367,7 @@ Buffer-local keymaps available when inside a git repository:
|
|||
|
||||
### Formatting & Linting
|
||||
|
||||
This config uses **none-ls** for formatting and **nvim-lint** for diagnostics. Both prefer project-local tools over global installations.
|
||||
This config uses **conform.nvim** for formatting and **nvim-lint** for diagnostics. Both prefer project-local tools over global installations.
|
||||
|
||||
#### Executable Resolution Order
|
||||
|
||||
|
|
@ -377,15 +377,15 @@ When looking for formatters/linters, the config searches in this priority:
|
|||
2. **Mason-managed** (`~/.local/share/nvim/mason/bin/`)
|
||||
3. **System PATH** (globally installed tools)
|
||||
|
||||
See `find_executable()` helper in `lua/plugins/none-ls.lua` and `lua/plugins/nvim-lint.lua`.
|
||||
Conform.nvim handles this resolution automatically via its built-in `util.find_executable()`. nvim-lint uses a custom `find_executable()` helper in `lua/plugins/nvim-lint.lua`.
|
||||
|
||||
#### Configured Tools
|
||||
|
||||
**Formatters** (`lua/plugins/none-ls.lua`):
|
||||
**Formatters** (`lua/plugins/conform.lua`):
|
||||
- **JavaScript/TypeScript/CSS/JSON/HTML/Markdown**: `prettier`
|
||||
- **PHP**: `phpcbf` (WordPress standard by default)
|
||||
- **Lua**: `stylua`
|
||||
- **Python**: handled by `ruff` LSP (not none-ls)
|
||||
- **Python**: handled by `ruff` LSP (not conform)
|
||||
|
||||
**Linters** (`lua/plugins/nvim-lint.lua`):
|
||||
- **JavaScript/TypeScript**: `eslint_d`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue