From 31f06952c0d2002bebd6728767a975fc5f0c325e Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Sat, 8 Jul 2023 17:35:38 -0500 Subject: [PATCH] removed: extraneous autofunctions --- lua/huck/functions.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lua/huck/functions.lua b/lua/huck/functions.lua index 37f3e84..7634722 100644 --- a/lua/huck/functions.lua +++ b/lua/huck/functions.lua @@ -9,14 +9,6 @@ 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, -}) - -- set text width vim.api.nvim_create_autocmd("BufWinEnter", { pattern = { "*.md", "*.txt" }, @@ -30,7 +22,6 @@ vim.api.nvim_create_autocmd("BufNewFile", { pattern = { "*" }, callback = function() local ext = vim.fn.expand("%:e") - local filename = vim.fn.expand("%:t") local dir = "/home/huck/repos/templates/" local copy = function(name) @@ -42,8 +33,6 @@ vim.api.nvim_create_autocmd("BufNewFile", { if ext ~= "" then copy("template.") - elseif filename == "Makefile" or filename == "LICENSE" then - copy(filename) end end, }) -- 2.45.2