mirror of
https://github.com/neovim/neovim.git
synced 2026-02-07 04:17:22 +00:00
fix: resolve all remaining LuaLS diagnostics
This commit is contained in:
committed by
Lewis Russell
parent
83479b95ab
commit
6aa42e8f92
@@ -262,6 +262,7 @@ local explicit_queries = setmetatable({}, {
|
||||
---@param query_name string Name of the query (e.g., "highlights")
|
||||
---@param text string Query text (unparsed).
|
||||
function M.set(lang, query_name, text)
|
||||
--- @diagnostic disable-next-line: undefined-field LuaLS bad at generics
|
||||
M.get:clear(lang, query_name)
|
||||
explicit_queries[lang][query_name] = M.parse(lang, text)
|
||||
end
|
||||
@@ -291,6 +292,7 @@ api.nvim_create_autocmd('OptionSet', {
|
||||
pattern = { 'runtimepath' },
|
||||
group = api.nvim_create_augroup('nvim.treesitter.query_cache_reset', { clear = true }),
|
||||
callback = function()
|
||||
--- @diagnostic disable-next-line: undefined-field LuaLS bad at generics
|
||||
M.get:clear()
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user