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,47 +1,53 @@
local true_zen = require("true-zen") local M = {}
true_zen.setup( M.config = function()
{ local true_zen = require("true-zen")
true_false_commands = false,
cursor_by_mode = false, true_zen.setup(
before_minimalist_mode_shown = true, {
before_minimalist_mode_hidden = true, true_false_commands = false,
after_minimalist_mode_shown = true, cursor_by_mode = false,
after_minimalist_mode_hidden = true, before_minimalist_mode_shown = true,
bottom = { before_minimalist_mode_hidden = true,
hidden_laststatus = 0, after_minimalist_mode_shown = true,
hidden_ruler = false, after_minimalist_mode_hidden = true,
hidden_showmode = false, bottom = {
hidden_showcmd = false, hidden_laststatus = 0,
hidden_cmdheight = 1, hidden_ruler = false,
shown_laststatus = 2, hidden_showmode = false,
shown_ruler = true, hidden_showcmd = false,
shown_showmode = false, hidden_cmdheight = 1,
shown_showcmd = false, shown_laststatus = 2,
shown_cmdheight = 1 shown_ruler = true,
}, shown_showmode = false,
top = { shown_showcmd = false,
hidden_showtabline = 0, shown_cmdheight = 1
shown_showtabline = 2 },
}, top = {
left = { hidden_showtabline = 0,
hidden_number = false, shown_showtabline = 2
hidden_relativenumber = false, },
hidden_signcolumn = "no", left = {
shown_number = true, hidden_number = false,
shown_relativenumber = false, hidden_relativenumber = false,
shown_signcolumn = "yes" hidden_signcolumn = "no",
}, shown_number = true,
ataraxis = { shown_relativenumber = false,
just_do_it_for_me = false, shown_signcolumn = "yes"
left_padding = 37, },
right_padding = 37, ataraxis = {
top_padding = 2, just_do_it_for_me = false,
bottom_padding = 2, left_padding = 37,
custome_bg = "#1e222a" right_padding = 37,
}, top_padding = 2,
integrations = { bottom_padding = 2,
integration_galaxyline = true custome_bg = "#1e222a"
},
integrations = {
integration_galaxyline = true
}
} }
} )
) end
return M