Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Read function_complex field #45

Merged
merged 1 commit into from
Nov 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lua/filetype/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ local function try_filetype_map(absolute_path, filename, ext, map)
return true
end

if try_regex(absolute_path, map.function_complex) then
return true
end

-- These require the use of a special function that excludes
-- certain filetypes from being binded to autocommands
-- using g:ft_ignore_pat
Expand Down