From e3bb86e04342fcca289319a3c71f970861b80ec1 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 4 Jun 2023 20:24:11 +0200 Subject: [PATCH] Theme settings --- nvim/.config/nvim/init.lua | 42 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index f04eebf..8f67800 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -9,8 +9,46 @@ require("evim.init") -- Theme vim.opt.termguicolors = true -require('onedark').setup { - style = 'darker' +local theme = require("onedark") + +theme.setup { + -- Main options -- + style = "warmer", -- Default theme style. Choose between "dark", "darker", "cool", "deep", "warm", "warmer" and "light" + transparent = false, -- 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 separated, For e.g., keywords = "italic,bold" + code_style = { + comments = "italic", + keywords = "none", + functions = "bold", + 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 + }, } vim.cmd.colorscheme "onedark"