disable dashboard by default

This commit is contained in:
siduck76 2021-09-02 09:45:28 +05:30
parent 5742567630
commit 873b846d50
4 changed files with 4 additions and 11 deletions

View file

@ -80,7 +80,7 @@ M.plugin_status = {
cheatsheet = true, -- fuzzy search your commands/keymappings cheatsheet = true, -- fuzzy search your commands/keymappings
colorizer = true, colorizer = true,
comment = true, -- universal commentor comment = true, -- universal commentor
dashboard = true, -- a nice looking dashboard dashboard = false, -- a nice looking dashboard
esc_insertmode = true, -- escape from insert mode using custom keys esc_insertmode = true, -- escape from insert mode using custom keys
feline = true, -- statusline feline = true, -- statusline
gitsigns = true, -- gitsigns in statusline gitsigns = true, -- gitsigns in statusline

View file

@ -85,7 +85,7 @@ M.plugin_status = {
cheatsheet = true, -- fuzzy search your commands/keymappings cheatsheet = true, -- fuzzy search your commands/keymappings
colorizer = true, colorizer = true,
comment = true, -- universal commentor comment = true, -- universal commentor
dashboard = true, -- a nice looking dashboard dashboard = false, -- a nice looking dashboard
esc_insertmode = true, -- escape from insert mode using custom keys esc_insertmode = true, -- escape from insert mode using custom keys
feline = true, -- statusline feline = true, -- statusline
gitsigns = true, -- gitsigns in statusline gitsigns = true, -- gitsigns in statusline

View file

@ -1,9 +1,9 @@
local g = vim.g local g = vim.g
local fn = vim.fn
-- local fn = vim.fn
-- local plugins_count = fn.len(fn.globpath("~/.local/share/nvim/site/pack/packer/start", "*", 0, 1)) -- local plugins_count = fn.len(fn.globpath("~/.local/share/nvim/site/pack/packer/start", "*", 0, 1))
g.dashboard_disable_at_vimenter = 1 -- dashboard is disabled by default g.dashboard_disable_at_vimenter = 0
g.dashboard_disable_statusline = 1 g.dashboard_disable_statusline = 1
g.dashboard_default_executive = "telescope" g.dashboard_default_executive = "telescope"
g.dashboard_custom_header = { g.dashboard_custom_header = {

View file

@ -233,13 +233,6 @@ return packer.startup(function()
use { use {
"glepnir/dashboard-nvim", "glepnir/dashboard-nvim",
disable = not plugin_status.dashboard, disable = not plugin_status.dashboard,
cmd = {
"Dashboard",
"DashboardNewFile",
"DashboardJumpMarks",
"SessionLoad",
"SessionSave",
},
config = function() config = function()
require "plugins.configs.dashboard" require "plugins.configs.dashboard"
end, end,