From ffa782066c2e02a068171963aded4bb300c25663 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Fri, 25 Sep 2026 17:07:21 +0100 Subject: fix(lua): enable assignment type checking in runtime code Enable EmmyLua's assign-type-mismatch diagnostic after correcting the runtime annotations and assignments it flags. Correct option, tuple, and return types, and use separate locals when a value changes representation. Add guards and narrow casts where needed so the runtime passes the stricter check. Regenerate the affected docs. AI-assisted --- runtime/lua/vim/treesitter/dev.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/treesitter/dev.lua') diff --git a/runtime/lua/vim/treesitter/dev.lua b/runtime/lua/vim/treesitter/dev.lua index c719e0dbd2..4d9407eff5 100644 --- a/runtime/lua/vim/treesitter/dev.lua +++ b/runtime/lua/vim/treesitter/dev.lua @@ -338,7 +338,7 @@ end --- --- Title of the window. If a function, it accepts the buffer number of the --- source buffer as its only argument and should return a string. ---- @field title (string|fun(bufnr:integer):string|nil) +--- @field title? string|fun(bufnr:integer):string --- @nodoc --- @param opts vim.treesitter.dev.inspect_tree.Opts? -- cgit