diff options
| author | jdhao <jdhao@hotmail.com> | 2022-11-16 02:25:20 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-11-16 02:26:28 +0800 |
| commit | 8b10be60d45f2505d1f6962014640a123b814614 (patch) | |
| tree | 72d56451e0be1e787896aeede4602c22098707d8 /core | |
| parent | 074d2bbdfdbdb0ce0d7631a3b9406bd172e0d851 (diff) | |
update colorscheme list
- remove other gruvbox variant
- remove doom-one casue it has bugs
- add more colorschemes
Diffstat (limited to 'core')
| -rw-r--r-- | core/colorschemes.lua | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/core/colorschemes.lua b/core/colorschemes.lua index 1afacf0..1b22659 100644 --- a/core/colorschemes.lua +++ b/core/colorschemes.lua @@ -7,17 +7,19 @@ local M = {} -- Colorscheme to its directory name mapping, because colorscheme repo name is not necessarily -- the same as the colorscheme name itself. M.colorscheme2dir = { - gruvbox8 = "vim-gruvbox8", onedark = "onedark.nvim", edge = "edge", sonokai = "sonokai", gruvbox_material = "gruvbox-material", nord = "nord.nvim", - doom_one = "doom-one.nvim", everforest = "everforest", nightfox = "nightfox.nvim", kanagawa = "kanagawa.nvim", catppuccin = "catppuccin", + rose_pine = "rose-pine", + onedarkpro = "onedarkpro.nvim", + monokai = "monokai.nvim", + material = "material.nvim", } M.gruvbox8 = function() @@ -50,6 +52,10 @@ M.sonokai = function() end M.gruvbox_material = function() + -- foreground option can be material, mix, or original + vim.g.gruvbox_material_foreground = "material" + --background option can be hard, medium, soft + vim.g.gruvbox_material_background = "soft" vim.g.gruvbox_material_enable_italic = 1 vim.g.gruvbox_material_better_performance = 1 @@ -88,6 +94,34 @@ M.catppuccin = function() vim.cmd([[colorscheme catppuccin]]) end +M.rose_pine = function() + require('rose-pine').setup({ + --- @usage 'main' | 'moon' + dark_variant = 'moon', + }) + + -- set colorscheme after options + vim.cmd('colorscheme rose-pine') +end + +M.onedarkpro = function() + require("onedarkpro").setup({ + dark_theme = "onedark", -- The default dark theme + }) + + -- set colorscheme after options + vim.cmd('colorscheme onedarkpro') +end + +M.monokai = function() + vim.cmd('colorscheme monokai_pro') +end + +M.material = function () + vim.g.material_style = "oceanic" + vim.cmd('colorscheme material') +end + --- Use a random colorscheme from the pre-defined list of colorschemes. M.rand_colorscheme = function() local colorscheme = utils.rand_element(vim.tbl_keys(M.colorscheme2dir)) |
