From d9a888e96676f23321cbd07e7b15d310d4afdcce Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 21 Mar 2021 20:02:49 -0400 Subject: update galaxyline filetype, spaces, encoding --- lua/nv-galaxyline/init.lua | 58 ++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 51 insertions(+), 7 deletions(-) (limited to 'lua/nv-galaxyline/init.lua') diff --git a/lua/nv-galaxyline/init.lua b/lua/nv-galaxyline/init.lua index c5943e6c..fd6ca8c8 100644 --- a/lua/nv-galaxyline/init.lua +++ b/lua/nv-galaxyline/init.lua @@ -52,7 +52,7 @@ gls.left[1] = { vim.api.nvim_command('hi GalaxyViMode guifg=' .. mode_color[vim.fn.mode()]) return '▊ ' end, - highlight = {colors.red, colors.bg, 'bold'} + highlight = {colors.red, colors.bg} } } print(vim.fn.getbufvar(0,'ts')) @@ -66,7 +66,7 @@ gls.left[2] = { condition = condition.check_git_workspace, separator = ' ', separator_highlight = {'NONE', colors.bg}, - highlight = {colors.orange, colors.bg, 'bold'} + highlight = {colors.orange, colors.bg} } } @@ -76,7 +76,7 @@ gls.left[3] = { condition = condition.check_git_workspace, separator = ' ', separator_highlight = {'NONE', colors.bg}, - highlight = {colors.grey, colors.bg, 'bold'} + highlight = {colors.grey, colors.bg} } } @@ -145,7 +145,7 @@ gls.right[5] = { return true end, icon = ' ', - highlight = {colors.grey, colors.bg, 'bold'} + highlight = {colors.grey, colors.bg} } } @@ -163,16 +163,60 @@ gls.right[7] = { provider = 'LinePercent', separator = ' ', separator_highlight = {'NONE', colors.bg}, - highlight = {colors.grey, colors.bg, 'bold'} + highlight = {colors.grey, colors.bg} + } +} + +gls.right[8] = { + Tabstop = { + provider = function() + return "Spaces: " .. vim.api.nvim_buf_get_option(0, "tabstop") .. " " + end, + condition = condition.hide_in_width, + separator = ' ', + separator_highlight = {'NONE', colors.bg}, + highlight = {colors.grey, colors.bg} + } +} + +gls.right[9] = { + BufferType = { + provider = 'FileTypeName', + condition = condition.hide_in_width, + separator = ' ', + separator_highlight = {'NONE', colors.bg}, + highlight = {colors.grey, colors.bg} + } +} + +gls.right[10] = { + FileEncode = { + provider = 'FileEncode', + condition = condition.hide_in_width, + separator = ' ', + separator_highlight = {'NONE',colors.bg}, + highlight = {colors.grey, colors.bg} + } +} + +gls.right[11] = { + Space = { + provider = function() + return ' ' + end, + separator = ' ', + separator_highlight = {'NONE', colors.bg}, + highlight = {colors.orange, colors.bg} } } + gls.short_line_left[1] = { BufferType = { provider = 'FileTypeName', separator = ' ', separator_highlight = {'NONE', colors.bg}, - highlight = {colors.grey, colors.bg, 'bold'} + highlight = {colors.grey, colors.bg} } } @@ -180,7 +224,7 @@ gls.short_line_left[2] = { SFileName = { provider = 'SFileName', condition = condition.buffer_not_empty, - highlight = {colors.grey, colors.bg, 'bold'} + highlight = {colors.grey, colors.bg} } } -- cgit v1.2.3