From 2ed106ab006ad6dd6d5cab50838bf29225e2212f Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Sat, 27 May 2023 09:23:12 -0500 Subject: [PATCH] fixed: makefile and license part of template autofunctions --- lua/huck/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/huck/functions.lua b/lua/huck/functions.lua index 0da067d..bb58736 100644 --- a/lua/huck/functions.lua +++ b/lua/huck/functions.lua @@ -1,4 +1,4 @@ --- open help windows in a vertical split +-- open certain windows in a vertical split vim.api.nvim_create_autocmd("BufWinEnter", { pattern = { "*" }, callback = function() @@ -34,7 +34,7 @@ vim.api.nvim_create_autocmd("BufNewFile", { if ext ~= "" then copy("template.") - elseif filename == "Makefile" or "LICENSE" then + elseif filename == "Makefile" or filename == "LICENSE" then copy(filename) end end, -- 2.44.2