docs: fix syntax errors in examples #38606

This commit is contained in:
skewb1k
2026-03-30 18:49:30 +03:00
committed by GitHub
parent 183933998c
commit 2dce2af768
6 changed files with 9 additions and 9 deletions

View File

@@ -184,7 +184,7 @@ end
--- })
--- vim.lsp.config('…', {
--- filetypes = { 'my_filetype1', 'my_filetype2' },
--- }
--- })
--- ```
--- @field filetypes? string[]
---

View File

@@ -55,7 +55,7 @@ local all_clients = {}
--- string.
--- Example:
--- ```lua
--- { PORT = 8080; HOST = '0.0.0.0'; }
--- { PORT = 8080, HOST = '0.0.0.0' }
--- ```
--- @field cmd_env? table
---

View File

@@ -268,8 +268,8 @@ local explicit_queries = setmetatable({}, {
--- 'c',
--- 'highlights',
--- [[;inherits c
--- (identifier) @spell]])
--- ]])
--- (identifier) @spell]]
--- )
--- ```
---
---@param lang string Language to use for the query