local api = vim.api
local M = {}
---@private
local function starsetf(ft)
return {function(path)
if not vim.g.fg_ignore_pat then
return ft
end
local re = vim.regex(vim.g.fg_ignore_pat)
if re:match_str(path) then
return ft
end
end, {
-- Starset matches should always have lowest priority
priority = -math.huge,
}}
end
---@private
local function getline(bufnr, lnum)
return api.nvim_buf_get_lines(bufnr, lnum-1, lnum, false)[1] or ""
end
-- Filetypes based on file extension
-- luacheck: push no unused args
local extension = {
-- BEGIN EXTENSION
["8th"] = "8th",
["a65"] = "a65",
aap = &quo
|