lazy load truezen.nvim

This commit is contained in:
siduck76 2021-06-26 07:52:48 +05:30
parent f900ecaed3
commit 193a852335
4 changed files with 60 additions and 51 deletions

View File

@ -38,5 +38,4 @@ vim.api.nvim_exec(
false false
) )
require "zenmode"
require "whichkey" require "whichkey"

View File

@ -41,12 +41,8 @@ vim.g.loaded_gzip = 0
vim.g.loaded_tar = 0 vim.g.loaded_tar = 0
vim.g.loaded_tarPlugin = 0 vim.g.loaded_tarPlugin = 0
vim.g.loaded_zipPlugin = 0 vim.g.loaded_zipPlugin = 0
vim.g.loaded_2html_plugin = 1
vim.g.loaded_netrw = 0 vim.g.loaded_netrw = 0
vim.g.loaded_netrwPlugin = 0 vim.g.loaded_netrwPlugin = 0
vim.g.loaded_matchit = 1
vim.g.loaded_matchparen = 1
vim.g.loaded_spec = 1
local M = {} local M = {}

View File

@ -124,7 +124,15 @@ return packer.startup(
} }
use "karb94/neoscroll.nvim" use "karb94/neoscroll.nvim"
use "kdav5758/TrueZen.nvim"
use {
"kdav5758/TrueZen.nvim",
cmd = {"TZAtaraxis", "TZMinimalist"},
config = function()
require("zenmode").config()
end
}
use "folke/which-key.nvim" use "folke/which-key.nvim"
-- use "alvan/vim-closetag" -- for html -- use "alvan/vim-closetag" -- for html

View File

@ -1,3 +1,6 @@
local M = {}
M.config = function()
local true_zen = require("true-zen") local true_zen = require("true-zen")
true_zen.setup( true_zen.setup(
@ -45,3 +48,6 @@ true_zen.setup(
} }
} }
) )
end
return M