aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/spectral.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-04-18 17:44:38 +0200
committerJustin M. Keyes <justinkz@gmail.com>2025-04-18 17:44:38 +0200
commitf8b5cbe6312b568def1f91d747e2cdb8984fdf2e (patch)
treec1baf319b22d8ccc7d3468276b5ba9a26dfa2775 /lsp/spectral.lua
parentfeat: angularls #3746 (diff)
downloadnvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar
nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.gz
nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.bz2
nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.lz
nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.xz
nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.tar.zst
nvim-lspconfig-f8b5cbe6312b568def1f91d747e2cdb8984fdf2e.zip
docs: cleanup
- brief should live at the top of each file - fix indentation for some docs
Diffstat (limited to 'lsp/spectral.lua')
-rw-r--r--lsp/spectral.lua21
1 files changed, 10 insertions, 11 deletions
diff --git a/lsp/spectral.lua b/lsp/spectral.lua
index a8360146..ea8a7206 100644
--- a/lsp/spectral.lua
+++ b/lsp/spectral.lua
@@ -1,17 +1,16 @@
-local bin_name = 'spectral-language-server'
-
---@brief
---
--- https://github.com/luizcorreia/spectral-language-server
--- `A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3.`
---
--- `spectral-language-server` can be installed via `npm`:
--- ```sh
--- npm i -g spectral-language-server
--- ```
--- See [vscode-spectral](https://github.com/stoplightio/vscode-spectral#extension-settings) for configuration options.
+--- https://github.com/luizcorreia/spectral-language-server
+--- `A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v2 & v3.`
+---
+--- `spectral-language-server` can be installed via `npm`:
+--- ```sh
+--- npm i -g spectral-language-server
+--- ```
+--- See [vscode-spectral](https://github.com/stoplightio/vscode-spectral#extension-settings) for configuration options.
+
return {
- cmd = { bin_name, '--stdio' },
+ cmd = { 'spectral-language-server', '--stdio' },
filetypes = { 'yaml', 'json', 'yml' },
root_markers = { '.spectral.yaml', '.spectral.yml', '.spectral.json', '.spectral.js' },
settings = {