chore: ignore unused args in filetype functions (#16927)

Also mark the 'getline' helper function as private to avoid docgen.
This commit is contained in:
Gregory Anders 2022-01-04 15:24:14 -07:00 committed by GitHub
parent bb5e03fa4b
commit 74a90cf098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,11 +19,13 @@ local function starsetf(ft)
}}
end
---@private
local function getline(bufnr, lnum)
return api.nvim_buf_get_lines(bufnr, lnum-1, lnum, false)[1]
end
-- Filetypes based on file extension
-- luacheck: push no unused args
local extension = {
-- BEGIN EXTENSION
["8th"] = "8th",
@ -1325,6 +1327,7 @@ local pattern = {
["zsh.*"] = starsetf('zsh'),
-- END PATTERN
}
-- luacheck: pop
---@private
local function sort_by_priority(t)