From 194c537dc297c964ef001afaa24ba7fed8c1c446 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Mon, 22 May 2023 11:24:02 -0500 Subject: [PATCH] added: autocommand for .meta filetypes --- lua/huck/functions.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/huck/functions.lua b/lua/huck/functions.lua index 235bbd5..0da067d 100644 --- a/lua/huck/functions.lua +++ b/lua/huck/functions.lua @@ -9,6 +9,14 @@ vim.api.nvim_create_autocmd("BufWinEnter", { end, }) +-- set filetype for .meta files +vim.api.nvim_create_autocmd("BufWinEnter", { + pattern = { "*.meta" }, + callback = function() + vim.cmd.setfiletype("markdown") + end, +}) + -- check template folder and if a template.[filetype] exists use it vim.api.nvim_create_autocmd("BufNewFile", { pattern = { "*" }, -- 2.45.2