mirror of
https://github.com/neovim/neovim.git
synced 2026-09-12 17:11:02 +00:00
build: enable more EmmyLua checks
- call-non-callable - missing-fields - redefined-label - redefined-local - undefined-field - unreachable-code Promote redefined-local and unreachable-code to warnings. Fix DOS line-ending handling for multiline semantic tokens, and support intersection types in the help parser. AI-assisted
This commit is contained in:
committed by
Lewis Russell
parent
ec65796cea
commit
6a54396db4
@@ -309,7 +309,7 @@ local M = vim._defer_require('vim.diagnostic', {
|
||||
--- signs = { text = { [vim.diagnostic.severity.ERROR] = 'E', ... } }
|
||||
--- })
|
||||
--- ```
|
||||
--- @field text? table<vim.diagnostic.Severity,string>
|
||||
--- @field text? table<vim.diagnostic.Severity|vim.diagnostic.SeverityName,string>
|
||||
---
|
||||
--- A table mapping |diagnostic-severity| to the highlight group used for the
|
||||
--- line number where the sign is placed.
|
||||
@@ -441,6 +441,7 @@ local all_namespaces = {}
|
||||
---@param namespace integer? Update the options for the given namespace.
|
||||
--- When omitted, update the global diagnostic options.
|
||||
---@return vim.diagnostic.Opts? : Current diagnostic config if {opts} is omitted.
|
||||
---@overload fun(opts?: nil, namespace?: integer): vim.diagnostic.Opts
|
||||
function M.config(opts, namespace)
|
||||
return M._config.config(opts, namespace)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user