From 518b1d4167162a54a6e76784038d30191613b76d Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Tue, 20 Sep 2022 14:11:58 +0430 Subject: Fix: make sure latest plugins are customizable (#3044) * fix: make navim-navic configurable * fix: make sure vim-illuminate is configurable * fix: make sure theme is configurable * fix(ci): don't verify uninstalled plugins * refactor(lsp): add setup_document_symbols util * revert: keep onedarker on freeze branch * refactor(lsp): avoid duplicate hl autocmds Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com> --- lua/lvim/plugins.lua | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'lua/lvim/plugins.lua') diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index 85c1e80e..e84049dc 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -15,16 +15,11 @@ local core_plugins = { end, }, { - "lunarvim/tokyonight.nvim", + "folke/tokyonight.nvim", config = function() - pcall(function() - if lvim and lvim.colorscheme == "tokyonight-night" then - require("tokyonight-night").setup() - lvim.builtin.lualine.options.theme = "tokyonight-night" - end - end) + require("lvim.core.theme").setup() end, - disable = lvim.colorscheme ~= "tokyonight-night", + disable = not vim.startswith(lvim.colorscheme, "tokyonight"), }, { "rcarriga/nvim-notify", @@ -208,7 +203,7 @@ local core_plugins = { config = function() require("lvim.core.breadcrumbs").setup() end, - -- disable = not lvim.builtin.breadcrumbs.active, + disable = not lvim.builtin.breadcrumbs.active, }, { @@ -267,6 +262,23 @@ local core_plugins = { { "RRethy/vim-illuminate", + setup = function() + require("lvim.core.illuminate").setup() + end, + disable = not lvim.builtin.illuminate.active, + }, + { + "lunarvim/onedarker.nvim", + branch = "freeze", + config = function() + pcall(function() + if lvim and lvim.colorscheme == "onedarker" then + require("onedarker").setup() + lvim.builtin.lualine.options.theme = "onedarker" + end + end) + end, + disable = lvim.colorscheme ~= "onedarker", }, } -- cgit v1.2.3