mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
docs(gen): support language annotation in docstrings
This commit is contained in:
@@ -313,15 +313,15 @@ M['textDocument/completion'] = function(_, result, _, _)
|
||||
end
|
||||
|
||||
--- |lsp-handler| for the method "textDocument/hover"
|
||||
--- <pre>
|
||||
--- vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(
|
||||
--- vim.lsp.handlers.hover, {
|
||||
--- -- Use a sharp border with `FloatBorder` highlights
|
||||
--- border = "single",
|
||||
--- -- add the title in hover float window
|
||||
--- title = "hover"
|
||||
--- }
|
||||
--- )
|
||||
--- <pre>lua
|
||||
--- vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(
|
||||
--- vim.lsp.handlers.hover, {
|
||||
--- -- Use a sharp border with `FloatBorder` highlights
|
||||
--- border = "single",
|
||||
--- -- add the title in hover float window
|
||||
--- title = "hover"
|
||||
--- }
|
||||
--- )
|
||||
--- </pre>
|
||||
---@param config table Configuration table.
|
||||
--- - border: (default=nil)
|
||||
@@ -399,13 +399,13 @@ M['textDocument/implementation'] = location_handler
|
||||
|
||||
--- |lsp-handler| for the method "textDocument/signatureHelp".
|
||||
--- The active parameter is highlighted with |hl-LspSignatureActiveParameter|.
|
||||
--- <pre>
|
||||
--- vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(
|
||||
--- vim.lsp.handlers.signature_help, {
|
||||
--- -- Use a sharp border with `FloatBorder` highlights
|
||||
--- border = "single"
|
||||
--- }
|
||||
--- )
|
||||
--- <pre>lua
|
||||
--- vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(
|
||||
--- vim.lsp.handlers.signature_help, {
|
||||
--- -- Use a sharp border with `FloatBorder` highlights
|
||||
--- border = "single"
|
||||
--- }
|
||||
--- )
|
||||
--- </pre>
|
||||
---@param config table Configuration table.
|
||||
--- - border: (default=nil)
|
||||
|
||||
Reference in New Issue
Block a user