From 2a8dd6343a7541692461dab6bdf71257e8470dc2 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 16 Dec 2021 10:38:43 +0530 Subject: [PATCH] nvim: after/plugin/lualine: Move diagnostics to the right of status line --- nvim/.config/nvim/after/plugin/lualine.lua | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/nvim/.config/nvim/after/plugin/lualine.lua b/nvim/.config/nvim/after/plugin/lualine.lua index b5502ef..d635e58 100644 --- a/nvim/.config/nvim/after/plugin/lualine.lua +++ b/nvim/.config/nvim/after/plugin/lualine.lua @@ -112,19 +112,6 @@ ins_left { }, } - -ins_left { - 'diagnostics', - sources = { 'nvim_diagnostic' }, - symbols = { error = 'E:', warn = 'W:', info = 'I:', hint = 'H:' }, - diagnostics_color = { - color_error = { fg = colors.red }, - color_warn = { fg = colors.yellow }, - color_info = { fg = colors.cyan }, - color_hint = { fg = colors.orange }, - }, -} - ins_left { function() return '%=' @@ -137,6 +124,18 @@ ins_right { color = { fg = colors.cyan, gui = 'bold' } } +ins_right { + 'diagnostics', + sources = { 'nvim_diagnostic' }, + symbols = { error = 'E:', warn = 'W:', info = 'I:', hint = 'H:' }, + diagnostics_color = { + color_error = { fg = colors.red }, + color_warn = { fg = colors.yellow }, + color_info = { fg = colors.cyan }, + color_hint = { fg = colors.orange }, + }, +} + ins_right { 'location', color = { fg = colors.green, gui = 'bold' }