global theme option
This commit is contained in:
parent
7758c086e2
commit
fc76cb3f52
5
init.lua
5
init.lua
|
@ -3,7 +3,7 @@ require "pluginList"
|
||||||
require "misc-utils"
|
require "misc-utils"
|
||||||
|
|
||||||
require "top-bufferline"
|
require "top-bufferline"
|
||||||
require "statusline"
|
require "telescope-nvim"
|
||||||
|
|
||||||
local cmd = vim.cmd
|
local cmd = vim.cmd
|
||||||
local g = vim.g
|
local g = vim.g
|
||||||
|
@ -14,14 +14,15 @@ g.auto_save = 0
|
||||||
-- colorscheme related stuff
|
-- colorscheme related stuff
|
||||||
cmd "syntax on"
|
cmd "syntax on"
|
||||||
|
|
||||||
|
g.nvchad_theme = "gruvbox"
|
||||||
local base16 = require "base16"
|
local base16 = require "base16"
|
||||||
base16(base16.themes["nvchad-softgruv"], true)
|
base16(base16.themes["nvchad-softgruv"], true)
|
||||||
|
|
||||||
require "highlights"
|
require "highlights"
|
||||||
require("colorizer").setup()
|
require("colorizer").setup()
|
||||||
require "mappings"
|
require "mappings"
|
||||||
require "telescope-nvim"
|
|
||||||
require "file-icons"
|
require "file-icons"
|
||||||
|
require "statusline"
|
||||||
|
|
||||||
-- hide line numbers , statusline in specific buffers!
|
-- hide line numbers , statusline in specific buffers!
|
||||||
vim.api.nvim_exec(
|
vim.api.nvim_exec(
|
||||||
|
|
|
@ -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 {
|
require "nvim-web-devicons".setup {
|
||||||
override = {
|
override = {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
local cmd = vim.cmd
|
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 white = colors.white
|
||||||
local darker_black = colors.darker_black
|
local darker_black = colors.darker_black
|
||||||
|
|
|
@ -4,13 +4,16 @@ local condition = require("galaxyline.condition")
|
||||||
|
|
||||||
gl.short_line_list = {" "}
|
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] = {
|
gls.left[1] = {
|
||||||
FirstElement = {
|
FirstElement = {
|
||||||
provider = function() return '▋' end,
|
provider = function()
|
||||||
highlight = { colors.nord_blue, colors.nord_blue }
|
return "▋"
|
||||||
},
|
end,
|
||||||
|
highlight = {colors.nord_blue, colors.nord_blue}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gls.left[2] = {
|
gls.left[2] = {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
local colors = {
|
local colors = {
|
||||||
white = "#c7b89d",
|
white = "#c7b89d",
|
||||||
darker_black = "#1d2021",
|
darker_black = "#1e2122",
|
||||||
black = "#222526", -- nvim bg
|
black = "#222526", -- nvim bg
|
||||||
black2 = "#26292a",
|
black2 = "#26292a",
|
||||||
one_bg = "#2a2e36", -- real bg of onedark
|
one_bg = "#2a2e36",
|
||||||
one_bg2 = "#31353d",
|
one_bg2 = "#31353d",
|
||||||
one_bg3 = "#343840",
|
one_bg3 = "#343840",
|
||||||
grey = "#46494a",
|
grey = "#46494a",
|
||||||
|
@ -16,7 +16,7 @@ local colors = {
|
||||||
line = "#2c2f30", -- for lines like vertsplit
|
line = "#2c2f30", -- for lines like vertsplit
|
||||||
green = "#89b482",
|
green = "#89b482",
|
||||||
vibrant_green = "#a9b665",
|
vibrant_green = "#a9b665",
|
||||||
nord_blue = "#7b9bbb",
|
nord_blue = "#6f8faf",
|
||||||
blue = "#6d8dad",
|
blue = "#6d8dad",
|
||||||
yellow = "#d6b676",
|
yellow = "#d6b676",
|
||||||
sun = "#d1b171",
|
sun = "#d1b171",
|
||||||
|
|
Loading…
Reference in New Issue