use function in init opts for all plugins

if this isnt done then disabling a plugin will still have its init opt called, read https://github.com/NvChad/NvChad/discussions/1879
This commit is contained in:
siduck 2023-04-01 12:47:42 +05:30
parent 8ec2cb3b76
commit a5906e48fb
2 changed files with 24 additions and 9 deletions

View file

@ -329,7 +329,6 @@ M.nvterm = {
},
-- new
["<leader>h"] = {
function()
require("nvterm.terminal").new "horizontal"