From: Huck Boles Date: Sat, 27 May 2023 14:23:12 +0000 (-0500) Subject: fixed: makefile and license part of template autofunctions X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=2ed106ab006ad6dd6d5cab50838bf29225e2212f;p=nvim.git fixed: makefile and license part of template autofunctions --- 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,