]> git.huck.website - nvim.git/commitdiff
added: autocommand for .meta filetypes
authorHuck Boles <huck@huck.website>
Mon, 22 May 2023 16:24:02 +0000 (11:24 -0500)
committerHuck Boles <huck@huck.website>
Mon, 22 May 2023 16:24:02 +0000 (11:24 -0500)
lua/huck/functions.lua

index 235bbd50264c83d31939b9acb059585dc886fe34..0da067d3a6ab024416dba63389da93b96a2988d4 100644 (file)
@@ -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 = { "*" },