refact: move false to true in plugins and change disable to 'not' so that the user does'nt be confused (#257)
This commit is contained in:
parent
27031acd08
commit
7b796294a4
|
@ -31,26 +31,26 @@ local M = {
|
||||||
-- enable and disable plugins (true for disable)
|
-- enable and disable plugins (true for disable)
|
||||||
plugin_status = {
|
plugin_status = {
|
||||||
-- UI
|
-- UI
|
||||||
nvim_bufferline = false,
|
nvim_bufferline = true,
|
||||||
galaxyline = false,
|
galaxyline = true,
|
||||||
nvim_colorizer = false,
|
nvim_colorizer = true,
|
||||||
dashboard_nvim = false,
|
dashboard_nvim = true,
|
||||||
blankline = false,
|
blankline = true,
|
||||||
truezen_nvim = false,
|
truezen_nvim = true,
|
||||||
better_esc = false,
|
better_esc = true,
|
||||||
-- lsp stuff
|
-- lsp stuff
|
||||||
lspkind = false,
|
lspkind = true,
|
||||||
lspsignature = false,
|
lspsignature = true,
|
||||||
-- git stuff
|
-- git stuff
|
||||||
gitsigns = false,
|
gitsigns = true,
|
||||||
vim_fugitive = false,
|
vim_fugitive = true,
|
||||||
-- misc
|
-- misc
|
||||||
neoformat = false,
|
neoformat = true,
|
||||||
vim_matchup = false,
|
vim_matchup = true,
|
||||||
autosave_nvim = false,
|
autosave_nvim = true,
|
||||||
nvim_comment = false,
|
nvim_comment = true,
|
||||||
neoscroll_nvim = false,
|
neoscroll_nvim = true,
|
||||||
telescope_media = false
|
telescope_media = true
|
||||||
},
|
},
|
||||||
-- make sure you dont use same keys twice
|
-- make sure you dont use same keys twice
|
||||||
mappings = {
|
mappings = {
|
||||||
|
|
|
@ -20,7 +20,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"jdhao/better-escape.vim",
|
"jdhao/better-escape.vim",
|
||||||
disable = plugin_status.better_esc,
|
disable = not plugin_status.better_esc,
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.others".escape()
|
require "plugins.others".escape()
|
||||||
|
@ -29,7 +29,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"akinsho/nvim-bufferline.lua",
|
"akinsho/nvim-bufferline.lua",
|
||||||
disable = plugin_status.nvim_bufferline,
|
disable = not plugin_status.nvim_bufferline,
|
||||||
after = "nvim-base16.lua",
|
after = "nvim-base16.lua",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.bufferline"
|
require "plugins.bufferline"
|
||||||
|
@ -41,7 +41,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"glepnir/galaxyline.nvim",
|
"glepnir/galaxyline.nvim",
|
||||||
disable = plugin_status.galaxyline,
|
disable = not plugin_status.galaxyline,
|
||||||
after = "nvim-base16.lua",
|
after = "nvim-base16.lua",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.statusline"
|
require "plugins.statusline"
|
||||||
|
@ -59,7 +59,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"norcalli/nvim-colorizer.lua",
|
"norcalli/nvim-colorizer.lua",
|
||||||
disable = plugin_status.nvim_colorizer,
|
disable = not plugin_status.nvim_colorizer,
|
||||||
event = "BufRead",
|
event = "BufRead",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.others").colorizer()
|
require("plugins.others").colorizer()
|
||||||
|
@ -90,7 +90,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"onsails/lspkind-nvim",
|
"onsails/lspkind-nvim",
|
||||||
disable = plugin_status.lspkind,
|
disable = not plugin_status.lspkind,
|
||||||
event = "BufEnter",
|
event = "BufEnter",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.others").lspkind()
|
require("plugins.others").lspkind()
|
||||||
|
@ -99,7 +99,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"ray-x/lsp_signature.nvim",
|
"ray-x/lsp_signature.nvim",
|
||||||
disable = plugin_status.lspsignature,
|
disable = not plugin_status.lspsignature,
|
||||||
after = "nvim-lspconfig",
|
after = "nvim-lspconfig",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.others").signature()
|
require("plugins.others").signature()
|
||||||
|
@ -132,7 +132,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"sbdchd/neoformat",
|
"sbdchd/neoformat",
|
||||||
disable = plugin_status.neoformat,
|
disable = not plugin_status.neoformat,
|
||||||
cmd = "Neoformat",
|
cmd = "Neoformat",
|
||||||
setup = function()
|
setup = function()
|
||||||
require "mappings".neoformat()
|
require "mappings".neoformat()
|
||||||
|
@ -178,7 +178,7 @@ return packer.startup(
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope-media-files.nvim",
|
"nvim-telescope/telescope-media-files.nvim",
|
||||||
disable = plugin_status.telescope_media,
|
disable = not plugin_status.telescope_media,
|
||||||
setup = function()
|
setup = function()
|
||||||
require "mappings".telescope_media()
|
require "mappings".telescope_media()
|
||||||
end
|
end
|
||||||
|
@ -195,7 +195,7 @@ return packer.startup(
|
||||||
-- git stuff
|
-- git stuff
|
||||||
use {
|
use {
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
disable = plugin_status.gitsigns,
|
disable = not plugin_status.gitsigns,
|
||||||
after = "plenary.nvim",
|
after = "plenary.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.gitsigns"
|
require "plugins.gitsigns"
|
||||||
|
@ -223,13 +223,13 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"andymass/vim-matchup",
|
"andymass/vim-matchup",
|
||||||
disable = plugin_status.vim_matchup,
|
disable = not plugin_status.vim_matchup,
|
||||||
event = "CursorMoved"
|
event = "CursorMoved"
|
||||||
}
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"terrortylor/nvim-comment",
|
"terrortylor/nvim-comment",
|
||||||
disable = plugin_status.nvim_comment,
|
disable = not plugin_status.nvim_comment,
|
||||||
cmd = "CommentToggle",
|
cmd = "CommentToggle",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.others").comment()
|
require("plugins.others").comment()
|
||||||
|
@ -241,7 +241,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"glepnir/dashboard-nvim",
|
"glepnir/dashboard-nvim",
|
||||||
disable = plugin_status.dashboard_nvim,
|
disable = not plugin_status.dashboard_nvim,
|
||||||
cmd = {
|
cmd = {
|
||||||
"Dashboard",
|
"Dashboard",
|
||||||
"DashboardNewFile",
|
"DashboardNewFile",
|
||||||
|
@ -257,7 +257,7 @@ return packer.startup(
|
||||||
|
|
||||||
-- load autosave only if its globally enabled
|
-- load autosave only if its globally enabled
|
||||||
use {
|
use {
|
||||||
disable = plugin_status.autosave_nvim,
|
disable = not plugin_status.autosave_nvim,
|
||||||
"Pocco81/AutoSave.nvim",
|
"Pocco81/AutoSave.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require "plugins.autosave"
|
require "plugins.autosave"
|
||||||
|
@ -270,7 +270,7 @@ return packer.startup(
|
||||||
-- smooth scroll
|
-- smooth scroll
|
||||||
use {
|
use {
|
||||||
"karb94/neoscroll.nvim",
|
"karb94/neoscroll.nvim",
|
||||||
disable = plugin_status.neoscroll_nvim,
|
disable = not plugin_status.neoscroll_nvim,
|
||||||
event = "WinScrolled",
|
event = "WinScrolled",
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.others").neoscroll()
|
require("plugins.others").neoscroll()
|
||||||
|
@ -279,7 +279,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"Pocco81/TrueZen.nvim",
|
"Pocco81/TrueZen.nvim",
|
||||||
disable = plugin_status.truezen_nvim,
|
disable = not plugin_status.truezen_nvim,
|
||||||
cmd = {
|
cmd = {
|
||||||
"TZAtaraxis",
|
"TZAtaraxis",
|
||||||
"TZMinimalist",
|
"TZMinimalist",
|
||||||
|
@ -297,7 +297,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
disable = plugin_status.blankline,
|
disable = not plugin_status.blankline,
|
||||||
event = "BufRead",
|
event = "BufRead",
|
||||||
setup = function()
|
setup = function()
|
||||||
require("plugins.others").blankline()
|
require("plugins.others").blankline()
|
||||||
|
@ -306,7 +306,7 @@ return packer.startup(
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
disable = plugin_status.vim_fugitive,
|
disable = not plugin_status.vim_fugitive,
|
||||||
cmd = {
|
cmd = {
|
||||||
"Git"
|
"Git"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue