diff options
author | christianchiarulli <[email protected]> | 2021-07-06 12:28:50 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-06 12:28:50 -0400 |
commit | f22e1bd8cb6a38fdcad83b96d7739af778cd9d1d (patch) | |
tree | dbd52ee15583f746f21e5eae157e546388ee206d /lua/lv-galaxyline | |
parent | 20485971641a9d916640ccad05586a641c984ed6 (diff) | |
parent | 68bfac0468ea4d5d7faf5bede0a4ab8cb5572f0c (diff) |
cleanup and stability improvements0.4.1
Diffstat (limited to 'lua/lv-galaxyline')
-rw-r--r-- | lua/lv-galaxyline/init.lua | 60 |
1 files changed, 12 insertions, 48 deletions
diff --git a/lua/lv-galaxyline/init.lua b/lua/lv-galaxyline/init.lua index efb6a988..2189eab3 100644 --- a/lua/lv-galaxyline/init.lua +++ b/lua/lv-galaxyline/init.lua @@ -26,51 +26,6 @@ local colors = { info_yellow = "#FFCC66", } --- galaxyline themes for Gruvbox and NVCode. --- Uncomment and change 'colors_colorschemeName' --- to 'colors' to enable. - --- Colors for Gruvbox --- local colors_gruvbox = { --- bg = '#32302F', --- yellow = '#FABD2F', --- dark_yellow = '#D79921', --- cyan = '#689D6A', --- green = '#608B4E', --- light_green = '#B8BB26', --- string_orange = '#D65D0E', --- orange = '#FE8019', --- purple = '#B16286', --- magenta = '#D3869B', --- grey = '#A89984', --- blue = '#458588', --- -- vivid_blue = '#4FC1FF', --- light_blue = '#83A598', --- red = '#FB4834', --- error_red = '#CC241D', --- info_yellow = '#D79921' --- } --- colors for NVCode theme (very minimal changes) --- local colors_nvcode = { --- bg = '#2E2E2E', --- yellow = '#DCDCAA', --- dark_yellow = '#D7BA7D', --- cyan = '#4EC9B0', --- green = '#608B4E', --- light_green = '#B5CEA8', --- string_orange = '#CE9178', --- orange = '#FF8800', --- purple = '#C586C0', --- magenta = '#D16D9E', --- grey = '#729CB3', --- blue = '#569CD6', --- vivid_blue = '#4FC1FF', --- light_blue = '#9CDCFE', --- red = '#D16969', --- error_red = '#F44747', --- info_yellow = '#FFCC66' --- } - local condition = require "galaxyline.condition" local gls = gl.section gl.short_line_list = { "NvimTree", "vista", "dbui", "packer" } @@ -104,8 +59,8 @@ table.insert(gls.left, { vim.api.nvim_command("hi GalaxyViMode guifg=" .. mode_color[vim.fn.mode()]) return "â–Š" end, - highlight = 'StatusLineNC' - -- highlight = {colors.red, colors.bg} + separator_highlight = "StatusLineSeparator", + highlight = "StatusLineNC", }, }) -- print(vim.fn.getbufvar(0, 'ts')) @@ -160,6 +115,15 @@ table.insert(gls.left, { }, }) +table.insert(gls.left, { + Filler = { + provider = function() + return " " + end, + highlight = "StatusLineGitDelete", + }, +}) + table.insert(gls.right, { DiagnosticError = { provider = "DiagnosticError", @@ -209,7 +173,7 @@ table.insert(gls.right, { }) local get_lsp_client = function(msg) - msg = msg or "No Active LSP Client" + msg = msg or "LSP Inactive" local buf_ft = vim.api.nvim_buf_get_option(0, "filetype") local clients = vim.lsp.get_active_clients() if next(clients) == nil then |