]> git.huck.website - nvim.git/commitdiff
fixed: makefile and license part of template autofunctions
authorHuck Boles <huck@huck.website>
Sat, 27 May 2023 14:23:12 +0000 (09:23 -0500)
committerHuck Boles <huck@huck.website>
Sat, 27 May 2023 14:23:12 +0000 (09:23 -0500)
lua/huck/functions.lua

index 0da067d3a6ab024416dba63389da93b96a2988d4..bb58736a63fbe32b67b9b8370da52614da37e0bf 100644 (file)
@@ -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,