From 40a63f67c867e928afff4a43d6977cbb4f838bad Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 26 Jun 2021 08:05:24 +0530 Subject: [PATCH] add gruvbox theme --- init.lua | 3 +-- lua/file-icons.lua | 7 ++++++- lua/highlights.lua | 4 +++- lua/statusline.lua | 2 +- lua/themes/gruvbox.lua | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 lua/themes/gruvbox.lua diff --git a/init.lua b/init.lua index 1245f9a..ce91f42 100644 --- a/init.lua +++ b/init.lua @@ -15,11 +15,10 @@ g.auto_save = 0 cmd "syntax on" local base16 = require "base16" -base16(base16.themes["onedark"], true) +base16(base16.themes["nvchad-softgruv"], true) require "highlights" require("colorizer").setup() - require "mappings" require "telescope-nvim" require "file-icons" diff --git a/lua/file-icons.lua b/lua/file-icons.lua index 9bb5832..373eb61 100644 --- a/lua/file-icons.lua +++ b/lua/file-icons.lua @@ -1,4 +1,4 @@ -local colors = require "themes/onedark" +local colors = require "themes/gruvbox" require "nvim-web-devicons".setup { override = { @@ -106,6 +106,11 @@ require "nvim-web-devicons".setup { icon = "", color = colors.orange, name = "rpm" + }, + lua = { + icon = "", + color = colors.blue, + name = "lua" } } } diff --git a/lua/highlights.lua b/lua/highlights.lua index 70e2e86..a71738a 100644 --- a/lua/highlights.lua +++ b/lua/highlights.lua @@ -1,6 +1,6 @@ local cmd = vim.cmd -local colors = require "themes/onedark" +local colors = require "themes/gruvbox" local white = colors.white local darker_black = colors.darker_black @@ -66,6 +66,8 @@ fg_bg("DiffModified", nord_blue, "none") -- NvimTree fg("NvimTreeFolderIcon", blue) fg("NvimTreeFolderName", blue) +fg("NvimTreeOpenedFolderName", blue) +fg("NvimTreeEmptyFolderName", blue) fg("NvimTreeIndentMarker", one_bg2) fg("NvimTreeVertSplit", darker_black) bg("NvimTreeVertSplit", darker_black) diff --git a/lua/statusline.lua b/lua/statusline.lua index c035e3e..6823e55 100644 --- a/lua/statusline.lua +++ b/lua/statusline.lua @@ -4,7 +4,7 @@ local condition = require("galaxyline.condition") gl.short_line_list = {" "} -local colors = require "themes/onedark" +local colors = require "themes/gruvbox" gls.left[1] = { FirstElement = { diff --git a/lua/themes/gruvbox.lua b/lua/themes/gruvbox.lua new file mode 100644 index 0000000..10e0503 --- /dev/null +++ b/lua/themes/gruvbox.lua @@ -0,0 +1,33 @@ +local colors = { + white = "#c7b89d", + darker_black = "#1d2021", + black = "#222526", -- nvim bg + black2 = "#26292a", + one_bg = "#2a2e36", -- real bg of onedark + one_bg2 = "#31353d", + one_bg3 = "#343840", + grey = "#46494a", + grey_fg = "#5d6061", + grey_fg2 = "#5b5e5f", + light_grey = "#585b5c", + red = "#ec6b64", + baby_pink = "#ce8196", + pink = "#ff75a0", + line = "#2c2f30", -- for lines like vertsplit + green = "#89b482", + vibrant_green = "#a9b665", + nord_blue = "#7b9bbb", + blue = "#6d8dad", + yellow = "#d6b676", + sun = "#d1b171", + purple = "#b4bbc8", + dark_purple = "#cc7f94", + teal = "#749689", + orange = "#e78a4e", + cyan = "#82b3a8", + statusline_bg = "#252829", + lightbg = "#2d3139", + lightbg2 = "#262a32" +} + +return colors