diff --git a/runtime/doc/diagnostic.txt b/runtime/doc/diagnostic.txt index d398563ec0..98bbb07623 100644 --- a/runtime/doc/diagnostic.txt +++ b/runtime/doc/diagnostic.txt @@ -198,7 +198,7 @@ following uses the `virtual_lines` handler when jumping to a diagnostic: >lua if not diagnostic then return end vim.diagnostic.show( - diagnostic.namespace + diagnostic.namespace, bufnr, { diagnostic }, { virtual_lines = { current_line = true }, virtual_text = false } diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 80f11288c5..dcd82dda76 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -816,7 +816,7 @@ Lua module: vim.lsp *lsp-core* }) vim.lsp.config('…', { filetypes = { 'my_filetype1', 'my_filetype2' }, - } + }) < • {reuse_client}? (`fun(client: vim.lsp.Client, config: vim.lsp.ClientConfig): boolean`) Predicate which decides if a client should be @@ -1752,7 +1752,7 @@ Lua module: vim.lsp.client *lsp-client* • {cmd_env}? (`table`) Environment variables passed to the LSP process on spawn. Non-string values are coerced to string. Example: >lua - { PORT = 8080; HOST = '0.0.0.0'; } + { PORT = 8080, HOST = '0.0.0.0' } < • {commands}? (`table`) Map of client-defined commands overriding the diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index d1e437f866..e5a87237fe 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -1817,8 +1817,8 @@ set({lang}, {query_name}, {text}) *vim.treesitter.query.set()* 'c', 'highlights', [[;inherits c - (identifier) @spell]]) - ]]) + (identifier) @spell]] + ) < Parameters: ~ diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 9b8ab699ad..e099f2d33e 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -184,7 +184,7 @@ end --- }) --- vim.lsp.config('…', { --- filetypes = { 'my_filetype1', 'my_filetype2' }, ---- } +--- }) --- ``` --- @field filetypes? string[] --- diff --git a/runtime/lua/vim/lsp/client.lua b/runtime/lua/vim/lsp/client.lua index 3c9376d42b..041ed015cf 100644 --- a/runtime/lua/vim/lsp/client.lua +++ b/runtime/lua/vim/lsp/client.lua @@ -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 --- diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua index e290b43d56..3e0196779b 100644 --- a/runtime/lua/vim/treesitter/query.lua +++ b/runtime/lua/vim/treesitter/query.lua @@ -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