From f8b5cbe6312b568def1f91d747e2cdb8984fdf2e Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 18 Apr 2025 17:44:38 +0200 Subject: docs: cleanup - brief should live at the top of each file - fix indentation for some docs --- lsp/spectral.lua | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'lsp/spectral.lua') 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 = { -- cgit v1.2.3-70-g09d2