diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index fc836e6..078aedd 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -19,9 +19,7 @@ return { { "navarasu/onedark.nvim", init = function() - require("onedark").setup({ - style = "darker", -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light' - }) + require("user.onedark") require("onedark").load() end, }, diff --git a/lua/user/colorscheme.lua b/lua/user/colorscheme.lua index 6b1b8ca..6193088 100644 --- a/lua/user/colorscheme.lua +++ b/lua/user/colorscheme.lua @@ -1,9 +1,9 @@ -local colorscheme = "tokyonight" +-- local colorscheme = "tokyonight" -- local colorscheme = "gruvbox" -- local colorscheme = "sonokai" -- local colorscheme = "nordfox" -- local colorscheme = "material" --- local colorscheme = "onedark" +local colorscheme = "onedark" -- local colorscheme = "lunar" -- local colorscheme = "nord" diff --git a/lua/user/onedark.lua b/lua/user/onedark.lua new file mode 100644 index 0000000..2037608 --- /dev/null +++ b/lua/user/onedark.lua @@ -0,0 +1,39 @@ +require("onedark").setup({ + -- Main options -- + style = "darker", -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light' + transparent = true, -- Show/hide background + term_colors = true, -- Change terminal color as per the selected theme style + ending_tildes = false, -- Show the end-of-buffer tildes. By default they are hidden + cmp_itemkind_reverse = false, -- reverse item kind highlights in cmp menu + + -- toggle theme style --- + toggle_style_key = nil, -- keybind to toggle theme style. Leave it nil to disable it, or set it to a string, for example "ts" + toggle_style_list = { "dark", "darker", "cool", "deep", "warm", "warmer", "light" }, -- List of styles to toggle between + + -- Change code style --- + -- Options are italic, bold, underline, none + -- You can configure multiple style with comma seperated, For e.g., keywords = 'italic,bold' + code_style = { + comments = "italic", + keywords = "none", + functions = "none", + strings = "none", + variables = "none", + }, + + -- Lualine options -- + lualine = { + transparent = false, -- lualine center bar transparency + }, + + -- Custom Highlights -- + colors = {}, -- Override default colors + highlights = {}, -- Override highlight groups + + -- Plugins Config -- + diagnostics = { + darker = true, -- darker colors for diagnostic + undercurl = true, -- use undercurl instead of underline for diagnostics + background = true, -- use background color for virtual text + }, +})