fix: silence LuaLS's no-unknown warnings in src/

This commit is contained in:
Riccardo Mazzarini
2026-03-01 12:36:33 +01:00
parent 7fdf9f7399
commit 9204b7541d
11 changed files with 11 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env nvim -l
---@diagnostic disable: no-unknown
-- Lints C files in the Neovim source tree.
-- Based on Google "cpplint", modified for Neovim.

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
-- Generates C code to bridge API <=> Lua.
-- to obtain how the script is invoked, look in build/build.ninja and grep for

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
local mpack = vim.mpack
assert(#arg == 5)

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
if arg[1] == '--help' then
print('Usage:')
print(' ' .. arg[0] .. ' [-c] target source varname [source varname]...')

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
local mpack = vim.mpack
local funcsfname = arg[1]

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
-- Will generate files ex_cmds_enum.generated.h with cmdidx_T enum
-- and ex_cmds_defs.generated.h with main Ex commands definitions.

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
local do_not_run = true
if do_not_run then
print([[

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
-- Does the same as `nvim -c "helptags ++t doc" -c quit`
-- without needing to run a "nvim" binary, which is needed for cross-compiling.
local out = arg[1]

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
local options_input_file = arg[5]
--- @module 'nvim.options'

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
local mpack = vim.mpack
local syntax_file = arg[1]

View File

@@ -1,3 +1,4 @@
---@diagnostic disable: no-unknown
-- HASHY McHASHFACE
local M = {}