From 74a90cf0989dc4d6b564406844386c7f6504ce6e Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Tue, 4 Jan 2022 15:24:14 -0700 Subject: chore: ignore unused args in filetype functions (#16927) Also mark the 'getline' helper function as private to avoid docgen. --- runtime/lua/vim/filetype.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/lua') diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index bbcbe53eaa..f53911d0a0 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -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) -- cgit