global theme option

This commit is contained in:
siduck76 2021-06-26 08:08:12 +05:30
parent 7758c086e2
commit fc76cb3f52
5 changed files with 18 additions and 12 deletions

View file

@ -3,7 +3,7 @@ require "pluginList"
require "misc-utils"
require "top-bufferline"
require "statusline"
require "telescope-nvim"
local cmd = vim.cmd
local g = vim.g
@ -14,14 +14,15 @@ g.auto_save = 0
-- colorscheme related stuff
cmd "syntax on"
g.nvchad_theme = "gruvbox"
local base16 = require "base16"
base16(base16.themes["nvchad-softgruv"], true)
require "highlights"
require("colorizer").setup()
require "mappings"
require "telescope-nvim"
require "file-icons"
require "statusline"
-- hide line numbers , statusline in specific buffers!
vim.api.nvim_exec(

View file

@ -1,4 +1,5 @@
local colors = require "themes/gruvbox"
local global_theme = "themes/" .. vim.g.nvchad_theme
local colors = require(global_theme)
require "nvim-web-devicons".setup {
override = {

View file

@ -1,6 +1,7 @@
local cmd = vim.cmd
local colors = require "themes/gruvbox"
local global_theme = "themes/"..vim.g.nvchad_theme
local colors = require(global_theme)
local white = colors.white
local darker_black = colors.darker_black

View file

@ -4,13 +4,16 @@ local condition = require("galaxyline.condition")
gl.short_line_list = {" "}
local colors = require "themes/gruvbox"
local global_theme = "themes/" .. vim.g.nvchad_theme
local colors = require(global_theme)
gls.left[1] = {
FirstElement = {
provider = function() return '' end,
highlight = { colors.nord_blue, colors.nord_blue }
},
FirstElement = {
provider = function()
return ""
end,
highlight = {colors.nord_blue, colors.nord_blue}
}
}
gls.left[2] = {

View file

@ -1,9 +1,9 @@
local colors = {
white = "#c7b89d",
darker_black = "#1d2021",
darker_black = "#1e2122",
black = "#222526", -- nvim bg
black2 = "#26292a",
one_bg = "#2a2e36", -- real bg of onedark
one_bg = "#2a2e36",
one_bg2 = "#31353d",
one_bg3 = "#343840",
grey = "#46494a",
@ -16,7 +16,7 @@ local colors = {
line = "#2c2f30", -- for lines like vertsplit
green = "#89b482",
vibrant_green = "#a9b665",
nord_blue = "#7b9bbb",
nord_blue = "#6f8faf",
blue = "#6d8dad",
yellow = "#d6b676",
sun = "#d1b171",