diff options
author | kylo252 <[email protected]> | 2022-03-19 13:55:34 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-19 16:25:34 +0330 |
commit | 1488deebc714d66427fe0b55e6b9df0a0db97df4 (patch) | |
tree | 7bcdfee15d1bfeaf335fb6321d53ac43ed88307d /lua/lvim | |
parent | 5a8ccd9fcb3b7be2a07d92246e7bc764409ed537 (diff) |
refactor: load onedarker theme externally (#2359)
Diffstat (limited to 'lua/lvim')
-rw-r--r-- | lua/lvim/plugin-loader.lua | 4 | ||||
-rw-r--r-- | lua/lvim/plugins.lua | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua index 0fbe9971..a017b9b1 100644 --- a/lua/lvim/plugin-loader.lua +++ b/lua/lvim/plugin-loader.lua @@ -93,10 +93,6 @@ function plugin_loader.load(configurations) Log:warn "problems detected while loading plugins' configurations" Log:trace(debug.traceback()) end - - -- Colorscheme must get called after plugins are loaded or it will break new installs. - vim.g.colors_name = lvim.colorscheme - vim.cmd("colorscheme " .. lvim.colorscheme) end function plugin_loader.get_core_plugins() diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua index c7d6963f..489d7097 100644 --- a/lua/lvim/plugins.lua +++ b/lua/lvim/plugins.lua @@ -52,13 +52,20 @@ return { commit = commit.nvim_lsp_installer, }, { + "lunarvim/onedarker.nvim", + config = function() + require("onedarker").setup() + end, + disable = lvim.colorscheme ~= "onedarker", + }, + { "rcarriga/nvim-notify", commit = commit.nvim_notify, - disable = not lvim.builtin.notify.active, config = function() require("lvim.core.notify").setup() end, - event = "BufRead", + requires = { "nvim-telescope/telescope.nvim" }, + disable = not lvim.builtin.notify.active or not lvim.builtin.telescope.active, }, { "Tastyep/structlog.nvim", commit = commit.structlog }, @@ -75,6 +82,7 @@ return { }, { "nvim-telescope/telescope-fzf-native.nvim", + requires = { "nvim-telescope/telescope.nvim" }, commit = commit.telescope_fzf_native, run = "make", disable = not lvim.builtin.telescope.active, |