From 666df2ef74626c0ad5472c32008e87f63651275a Mon Sep 17 00:00:00 2001
From: gameloader <ggwqqo@163.com>
Date: Fri, 7 Oct 2022 19:51:22 +0800
Subject: [PATCH] change theme

---
 lua/basic.lua                    |  2 +-
 lua/plugin-config/coderunner.lua | 14 +++---
 lua/plugin-config/lualine.lua    | 80 ++++++++++++++++----------------
 lua/plugins.lua                  | 23 ++++++---
 4 files changed, 64 insertions(+), 55 deletions(-)

diff --git a/lua/basic.lua b/lua/basic.lua
index 66d3b23..2a847b4 100644
--- a/lua/basic.lua
+++ b/lua/basic.lua
@@ -11,7 +11,7 @@ M.load_default_options = function()
 		foldmethod = "manual", -- folding, set to "expr" for treesitter based folding
 		foldexpr = "", -- set to "nvim_treesitter#foldexpr()" for treesitter based folding
 		guifont = "monospace:h17", -- the font used in graphical neovim applications
-		background = "light", -- set the background to light or dark
+		background = "dark", -- set the background to light or dark
 		hidden = true, -- required to keep multiple buffers and open multiple buffers
 		hlsearch = true, -- highlight all matches on previous search pattern
 		ignorecase = true, -- ignore case in search patterns
diff --git a/lua/plugin-config/coderunner.lua b/lua/plugin-config/coderunner.lua
index 82ae8fc..d65c487 100644
--- a/lua/plugin-config/coderunner.lua
+++ b/lua/plugin-config/coderunner.lua
@@ -1,7 +1,7 @@
-require('code_runner').setup{
-  focus = false,
-  filetype = {
-    c = "cd $dir && gcc $fileName -o $fileNameWithoutExt -g && $dir/$fileNameWithoutExt",
-    cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt -g && $dir/$fileNameWithoutExt",
-  }
-}
+require("code_runner").setup({
+	focus = false,
+	filetype = {
+		c = "cd $dir && gcc $fileName -o $fileNameWithoutExt -g && $dir/$fileNameWithoutExt",
+		cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt -g && $dir/$fileNameWithoutExt",
+	},
+})
diff --git a/lua/plugin-config/lualine.lua b/lua/plugin-config/lualine.lua
index 7e9e97b..72b62d1 100644
--- a/lua/plugin-config/lualine.lua
+++ b/lua/plugin-config/lualine.lua
@@ -1,40 +1,40 @@
-require('lualine').setup {
-  options = {
-    icons_enabled = true,
-    theme = 'ayu_light',
-    component_separators = { left = '', right = ''},
-    section_separators = { left = '', right = ''},
-    disabled_filetypes = {
-      statusline = {},
-      winbar = {},
-    },
-    ignore_focus = {},
-    always_divide_middle = true,
-    globalstatus = false,
-    refresh = {
-      statusline = 1000,
-      tabline = 1000,
-      winbar = 1000,
-    }
-  },
-  sections = {
-    lualine_a = {'mode'},
-    lualine_b = {'branch', 'diff', 'diagnostics'},
-    lualine_c = {'filename'},
-    lualine_x = {'encoding', 'fileformat', 'filetype'},
-    lualine_y = {'progress'},
-    lualine_z = {'location'}
-  },
-  inactive_sections = {
-    lualine_a = {},
-    lualine_b = {},
-    lualine_c = {'filename'},
-    lualine_x = {'location'},
-    lualine_y = {},
-    lualine_z = {}
-  },
-  tabline = {},
-  winbar = {},
-  inactive_winbar = {},
-  extensions = {}
-}
+require("lualine").setup({
+	options = {
+		icons_enabled = true,
+		theme = "",
+		component_separators = { left = "", right = "" },
+		section_separators = { left = "", right = "" },
+		disabled_filetypes = {
+			statusline = {},
+			winbar = {},
+		},
+		ignore_focus = {},
+		always_divide_middle = true,
+		globalstatus = false,
+		refresh = {
+			statusline = 1000,
+			tabline = 1000,
+			winbar = 1000,
+		},
+	},
+	sections = {
+		lualine_a = { "mode" },
+		lualine_b = { "branch", "diff", "diagnostics" },
+		lualine_c = { "filename" },
+		lualine_x = { "encoding", "fileformat", "filetype" },
+		lualine_y = { "progress" },
+		lualine_z = { "location" },
+	},
+	inactive_sections = {
+		lualine_a = {},
+		lualine_b = {},
+		lualine_c = { "filename" },
+		lualine_x = { "location" },
+		lualine_y = {},
+		lualine_z = {},
+	},
+	tabline = {},
+	winbar = {},
+	inactive_winbar = {},
+	extensions = {},
+})
diff --git a/lua/plugins.lua b/lua/plugins.lua
index d6dc059..151e22d 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -2,15 +2,24 @@ return require("packer").startup(function()
 	-- Packer can manage itself
 	use("wbthomason/packer.nvim")
 
+	------------------ themes --------------------------
 	-- Nova theme for neovim light
-	use({
-		"zanglg/nova.nvim",
-		config = function()
-			-- support both dark and light style
-			require("nova").setup({ background = "light" })
+	-- use({
+	-- 	"zanglg/nova.nvim",
+	-- 	config = function()
+	-- 		-- support both dark and light style
+	-- 		require("nova").setup({ background = "light" })
 
-			-- load colorscheme
-			require("nova").load()
+	-- 		-- load colorscheme
+	-- 		require("nova").load()
+	-- 	end,
+	-- })
+
+	use({
+		"navarasu/onedark.nvim",
+		config = function()
+			require("onedark").setup({ style = "darker" })
+			require("onedark").load()
 		end,
 	})