Przeglądaj źródła

support colorschemes from lunarvim colorschemes

christianchiarulli 4 lat temu
rodzic
commit
50bb8acce4
2 zmienionych plików z 35 dodań i 35 usunięć
  1. 1 1
      lua/lv-galaxyline/config.lua
  2. 34 34
      lua/lv-galaxyline/init.lua

+ 1 - 1
lua/lv-galaxyline/config.lua

@@ -1,7 +1,7 @@
 O.plugin.galaxyline = {
 O.plugin.galaxyline = {
   active = true,
   active = true,
   colors = {
   colors = {
-    bg = "#2E2E2E",
+    alt_bg = "#2E2E2E",
     grey = "#858585",
     grey = "#858585",
     blue = "#569CD6",
     blue = "#569CD6",
     green = "#608B4E",
     green = "#608B4E",

+ 34 - 34
lua/lv-galaxyline/init.lua

@@ -45,8 +45,8 @@ table.insert(gls.left, {
       vim.api.nvim_command("hi GalaxyViMode guifg=" .. mode_color[vim.fn.mode()])
       vim.api.nvim_command("hi GalaxyViMode guifg=" .. mode_color[vim.fn.mode()])
       return "▊"
       return "▊"
     end,
     end,
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { "NONE", colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { "NONE", colors.alt_bg },
   },
   },
 })
 })
 -- print(vim.fn.getbufvar(0, 'ts'))
 -- print(vim.fn.getbufvar(0, 'ts'))
@@ -59,8 +59,8 @@ table.insert(gls.left, {
     end,
     end,
     condition = condition.check_git_workspace,
     condition = condition.check_git_workspace,
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.orange, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.orange, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -69,8 +69,8 @@ table.insert(gls.left, {
     provider = "GitBranch",
     provider = "GitBranch",
     condition = condition.check_git_workspace,
     condition = condition.check_git_workspace,
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -79,7 +79,7 @@ table.insert(gls.left, {
     provider = "DiffAdd",
     provider = "DiffAdd",
     condition = condition.hide_in_width,
     condition = condition.hide_in_width,
     icon = "  ",
     icon = "  ",
-    highlight = { colors.green, colors.bg },
+    highlight = { colors.green, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -88,7 +88,7 @@ table.insert(gls.left, {
     provider = "DiffModified",
     provider = "DiffModified",
     condition = condition.hide_in_width,
     condition = condition.hide_in_width,
     icon = " 柳",
     icon = " 柳",
-    highlight = { colors.blue, colors.bg },
+    highlight = { colors.blue, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -97,7 +97,7 @@ table.insert(gls.left, {
     provider = "DiffRemove",
     provider = "DiffRemove",
     condition = condition.hide_in_width,
     condition = condition.hide_in_width,
     icon = "  ",
     icon = "  ",
-    highlight = { colors.red, colors.bg },
+    highlight = { colors.red, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -106,7 +106,7 @@ table.insert(gls.left, {
     provider = function()
     provider = function()
       return " "
       return " "
     end,
     end,
-    highlight = { colors.grey, colors.bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 -- get output from shell command
 -- get output from shell command
@@ -151,7 +151,7 @@ table.insert(gls.left, {
   VirtualEnv = {
   VirtualEnv = {
     provider = PythonEnv,
     provider = PythonEnv,
     event = "BufEnter",
     event = "BufEnter",
-    highlight = { colors.green, colors.bg },
+    highlight = { colors.green, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -159,14 +159,14 @@ table.insert(gls.right, {
   DiagnosticError = {
   DiagnosticError = {
     provider = "DiagnosticError",
     provider = "DiagnosticError",
     icon = "  ",
     icon = "  ",
-    highlight = { colors.red, colors.bg },
+    highlight = { colors.red, colors.alt_bg },
   },
   },
 })
 })
 table.insert(gls.right, {
 table.insert(gls.right, {
   DiagnosticWarn = {
   DiagnosticWarn = {
     provider = "DiagnosticWarn",
     provider = "DiagnosticWarn",
     icon = "  ",
     icon = "  ",
-    highlight = { colors.orange, colors.bg },
+    highlight = { colors.orange, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -174,7 +174,7 @@ table.insert(gls.right, {
   DiagnosticInfo = {
   DiagnosticInfo = {
     provider = "DiagnosticInfo",
     provider = "DiagnosticInfo",
     icon = "  ",
     icon = "  ",
-    highlight = { colors.yellow, colors.bg },
+    highlight = { colors.yellow, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -182,7 +182,7 @@ table.insert(gls.right, {
   DiagnosticHint = {
   DiagnosticHint = {
     provider = "DiagnosticHint",
     provider = "DiagnosticHint",
     icon = "  ",
     icon = "  ",
-    highlight = { colors.blue, colors.bg },
+    highlight = { colors.blue, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -195,8 +195,8 @@ table.insert(gls.right, {
       return ""
       return ""
     end,
     end,
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.green, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.green, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -239,7 +239,7 @@ table.insert(gls.right, {
       return true
       return true
     end,
     end,
     icon = " ",
     icon = " ",
-    highlight = { colors.grey, colors.bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -247,8 +247,8 @@ table.insert(gls.right, {
   LineInfo = {
   LineInfo = {
     provider = "LineColumn",
     provider = "LineColumn",
     separator = "  ",
     separator = "  ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -256,8 +256,8 @@ table.insert(gls.right, {
   PerCent = {
   PerCent = {
     provider = "LinePercent",
     provider = "LinePercent",
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -268,8 +268,8 @@ table.insert(gls.right, {
     end,
     end,
     condition = condition.hide_in_width,
     condition = condition.hide_in_width,
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -278,8 +278,8 @@ table.insert(gls.right, {
     provider = "FileTypeName",
     provider = "FileTypeName",
     condition = condition.hide_in_width,
     condition = condition.hide_in_width,
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -288,8 +288,8 @@ table.insert(gls.right, {
     provider = "FileEncode",
     provider = "FileEncode",
     condition = condition.hide_in_width,
     condition = condition.hide_in_width,
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -299,8 +299,8 @@ table.insert(gls.right, {
       return " "
       return " "
     end,
     end,
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -308,8 +308,8 @@ table.insert(gls.short_line_left, {
   BufferType = {
   BufferType = {
     provider = "FileTypeName",
     provider = "FileTypeName",
     separator = " ",
     separator = " ",
-    separator_highlight = { "NONE", colors.bg },
-    highlight = { colors.grey, colors.bg },
+    separator_highlight = { "NONE", colors.alt_bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
@@ -317,8 +317,8 @@ table.insert(gls.short_line_left, {
   SFileName = {
   SFileName = {
     provider = "SFileName",
     provider = "SFileName",
     condition = condition.buffer_not_empty,
     condition = condition.buffer_not_empty,
-    highlight = { colors.grey, colors.bg },
+    highlight = { colors.grey, colors.alt_bg },
   },
   },
 })
 })
 
 
---table.insert(gls.short_line_right[1] = {BufferIcon = {provider = 'BufferIcon', highlight = {colors.grey, colors.bg}}})
+--table.insert(gls.short_line_right[1] = {BufferIcon = {provider = 'BufferIcon', highlight = {colors.grey, colors.alt_bg}}})