aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-02-11 19:13:24 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-02-11 19:13:24 +0000
commitf4e9d367d4e067d7a5fabc9fd3f1349b291eb718 (patch)
tree16f73c7e500c3c1d5906a63ab14c61089ebf0e47
parentMerge #4299 oxlint (diff)
downloadnvim-lspconfig-f4e9d367d4e067d7a5fabc9fd3f1349b291eb718.tar
nvim-lspconfig-f4e9d367d4e067d7a5fabc9fd3f1349b291eb718.tar.gz
nvim-lspconfig-f4e9d367d4e067d7a5fabc9fd3f1349b291eb718.tar.bz2
nvim-lspconfig-f4e9d367d4e067d7a5fabc9fd3f1349b291eb718.tar.lz
nvim-lspconfig-f4e9d367d4e067d7a5fabc9fd3f1349b291eb718.tar.xz
nvim-lspconfig-f4e9d367d4e067d7a5fabc9fd3f1349b291eb718.tar.zst
nvim-lspconfig-f4e9d367d4e067d7a5fabc9fd3f1349b291eb718.zip
docs: update configs.md
skip-checks: true
-rw-r--r--doc/configs.md23
-rw-r--r--doc/configs.txt21
2 files changed, 30 insertions, 14 deletions
diff --git a/doc/configs.md b/doc/configs.md
index 1cc8e254..ad7fde8e 100644
--- a/doc/configs.md
+++ b/doc/configs.md
@@ -8545,28 +8545,37 @@ It can be installed via `npm`:
npm i -g oxlint
```
+Type-aware linting will automatically be enabled if `tsgolint` exists in your
+path and your `.oxlintrc.json` contains the string "typescript".
+
+The default `on_attach` function provides an `:LspOxlintFixAll` command which
+can be used to fix all fixable diagnostics. See the `eslint` config entry for
+an example of how to use this to automatically fix all errors on write.
+
Snippet to enable the language server:
```lua
vim.lsp.enable('oxlint')
```
Default config:
+- `before_init`: [../lsp/oxlint.lua:32](../lsp/oxlint.lua#L32)
- `cmd` :
```lua
{ "oxlint", "--lsp" }
```
- `filetypes` :
```lua
- { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx", "vue", "svelte", "astro" }
+ { "javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "svelte", "astro" }
```
-- `init_options` :
+- `on_attach`: [../lsp/oxlint.lua:32](../lsp/oxlint.lua#L32)
+- `root_markers` :
```lua
- {
- settings = {}
- }
+ { ".oxlintrc.json" }
+ ```
+- `settings` :
+ ```lua
+ {}
```
-- `on_attach`: [../lsp/oxlint.lua:17](../lsp/oxlint.lua#L17)
-- `root_dir`: [../lsp/oxlint.lua:17](../lsp/oxlint.lua#L17)
- `workspace_required` : `true`
---
diff --git a/doc/configs.txt b/doc/configs.txt
index 7094414e..2d56241e 100644
--- a/doc/configs.txt
+++ b/doc/configs.txt