From a33efa0d4ebbfd2e53f59a2731c74015743285e2 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Sun, 29 Jun 2025 15:47:48 +0200 Subject: [PATCH] add filetypes to cronex --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 3a7d2c6..0a7ae0a 100644 --- a/init.lua +++ b/init.lua @@ -202,7 +202,7 @@ require'lazy'.setup{ --{{{1 require'cronex'.setup{ -- The plugin will automatically start (with autocommand) for these types of files. -- User can manually on any filetype turn explanations on(off) with the commands CronExplainedEnable(CronExplainedDisable) - file_patterns = { "*.yaml", "*.yml", "*.tf", "*.cfg", "*.config", "*.conf", "*.cs", "*.go", "*.sh", "*.bash", "*.py" }, + file_patterns = { "*.lua", "*.py", "*.c", "*.cpp", "*.hpp", "*.cs", "*.java", "*.go", "*.zig", "*.rust", "*.bash", "*.sh", "*.yaml", "*.yml", "*.json", "*.toml", }, extractor = { -- Configuration on how to extract cron expressions goes here: -- cron_from_line: Function to search cron expression in line cron_from_line = require("cronex.cron_from_line").cron_from_line,