summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/lualine.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/lualine.lua')
-rw-r--r--.config/nvim/lua/plugins/lualine.lua40
1 files changed, 8 insertions, 32 deletions
diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua
index 53d22ff..6dcdb8a 100644
--- a/.config/nvim/lua/plugins/lualine.lua
+++ b/.config/nvim/lua/plugins/lualine.lua
@@ -1,7 +1,6 @@
return {
{
'nvim-lualine/lualine.nvim',
- dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
local colors = {
bg = '#32302f',
@@ -108,7 +107,6 @@ return {
function()
return '▊'
end,
- -- color = { fg = colors.green }, -- Sets highlighting of component
color = function()
-- auto change color according to neovims mode
return { fg = mode_color[vim.fn.mode()] }
@@ -117,27 +115,14 @@ return {
}
ins_left {
- -- mode component
- function()
- return ''
- end,
- color = function()
- -- auto change color according to neovims mode
- return { fg = mode_color[vim.fn.mode()] }
- end,
- padding = { right = 1 },
- }
-
- ins_left {
'buffers',
show_filename_only = false,
hide_filename_extension = false,
show_modified_status = true,
- icons_enabled = true,
+ icons_enabled = false,
symbols = {
- modified = ' ●', -- Text to show when the buffer is modified
+ modified = '[+]', -- Text to show when the buffer is modified
alternate_file = '', -- Text to show to identify the alternate file
- directory = '', -- Text to show when the buffer is a directory
},
buffers_color = {
-- Same values as the general color option can be used here.
@@ -151,11 +136,11 @@ return {
ins_left {
'diagnostics',
sources = { 'nvim_diagnostic' },
- symbols = { error = ' ', warn = ' ', info = ' ' },
+ symbols = { error = 'E:', warn = 'W:', info = 'I:' },
diagnostics_color = {
color_error = { fg = colors.red },
color_warn = { fg = colors.yellow },
- color_info = { fg = colors.cyan },
+ color_info = { fg = colors.blue },
},
}
@@ -169,7 +154,7 @@ return {
ins_right {
'filetype',
- icons_enabled = true, -- I think icons are cool but Eviline doesn't have them. sigh
+ icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh
color = { fg = colors.blue },
}
@@ -180,7 +165,6 @@ return {
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
local clients = vim.lsp.get_clients()
if next(clients) == nil then
- icon = ''
return ''
end
for _, client in ipairs(clients) do
@@ -191,26 +175,19 @@ return {
end
return msg
end,
- icon = ' ',
+ icons_enabled = false,
color = { fg = colors.cyan },
}
ins_right {
'branch',
- icon = '',
+ icons_enabled = false,
color = { fg = colors.blue, gui = 'bold' },
}
ins_right {
- -- filesize component
- 'filesize',
- cond = conditions.buffer_not_empty,
- }
-
- ins_right {
'diff',
- -- Is it me or the symbol for modified us really weird
- symbols = { added = ' ', modified = '󰝤 ', removed = ' ' },
+ symbols = { added = '+', modified = '~', removed = '-' },
diff_color = {
added = { fg = colors.bright_green },
modified = { fg = colors.yellow },
@@ -225,7 +202,6 @@ return {
function()
return '▊'
end,
- -- color = { fg = colors.green },
color = function()
-- auto change color according to neovims mode
return { fg = mode_color[vim.fn.mode()] }