summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/plugins/lualine.lua
diff options
context:
space:
mode:
authorYigit Sever2024-02-09 01:39:40 +0300
committerYigit Sever2024-02-09 01:39:40 +0300
commitc818bf2a6758580063aecf97860bdb1d02789d60 (patch)
treee56ddb82ef16399cc3ae0b811001d3c2fc5de00f /.config/nvim/lua/plugins/lualine.lua
parentaaa08b837e679adf8cdf3cdea2272aab1c9fb80f (diff)
downloaddotfiles-c818bf2a6758580063aecf97860bdb1d02789d60.tar.gz
dotfiles-c818bf2a6758580063aecf97860bdb1d02789d60.tar.bz2
dotfiles-c818bf2a6758580063aecf97860bdb1d02789d60.zip
nvim: lua formatting
Diffstat (limited to '.config/nvim/lua/plugins/lualine.lua')
-rw-r--r--.config/nvim/lua/plugins/lualine.lua28
1 files changed, 14 insertions, 14 deletions
diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua
index 0da0b89..c4e936e 100644
--- a/.config/nvim/lua/plugins/lualine.lua
+++ b/.config/nvim/lua/plugins/lualine.lua
@@ -7,7 +7,7 @@ local function lualine_spell()
7end 7end
8 8
9local conditions = { 9local conditions = {
10 spell_on = function () 10 spell_on = function()
11 return vim.wo.spell 11 return vim.wo.spell
12 end, 12 end,
13 filetype_is_tex = function() 13 filetype_is_tex = function()
@@ -45,11 +45,11 @@ return {
45 }, 45 },
46 }, 46 },
47 sections = { 47 sections = {
48 lualine_a = {{'mode', fmt = string.lower}}, 48 lualine_a = { { 'mode', fmt = string.lower } },
49 lualine_b = {'branch', 49 lualine_b = { 'branch',
50 { 50 {
51 'diff', 51 'diff',
52 diff_color= { 52 diff_color = {
53 added = { fg = 'LightGreen' }, 53 added = { fg = 'LightGreen' },
54 modified = { fg = 'LightBlue' }, 54 modified = { fg = 'LightBlue' },
55 removed = { fg = 'LightRed' }, 55 removed = { fg = 'LightRed' },
@@ -58,23 +58,23 @@ return {
58 { 58 {
59 lualine_spell, 59 lualine_spell,
60 cond = conditions.spell_on, 60 cond = conditions.spell_on,
61 }}, 61 } },
62 lualine_c = {'filename'}, 62 lualine_c = { 'filename' },
63 lualine_x = {encoding, fileformat, 'filetype'}, 63 lualine_x = { encoding, fileformat, 'filetype' },
64 lualine_y = {'progress'}, 64 lualine_y = { 'progress' },
65 lualine_z = { 65 lualine_z = {
66 'location', { 66 'location', {
67 'diagnostics', 67 'diagnostics',
68 sources = {'nvim_diagnostic'}, 68 sources = { 'nvim_diagnostic' },
69 sections = {'error', 'warn', 'info', 'hint'}, 69 sections = { 'error', 'warn', 'info', 'hint' },
70 symbols = {error = 'e', warn = 'w', info = 'i', hint = 'h'} 70 symbols = { error = 'e', warn = 'w', info = 'i', hint = 'h' }
71 } 71 }
72 } 72 }
73 }, 73 },
74 inactive_sections = { 74 inactive_sections = {
75 lualine_a = {}, 75 lualine_a = {},
76 lualine_b = {}, 76 lualine_b = {},
77 lualine_c = {'filename'}, 77 lualine_c = { 'filename' },
78 lualine_x = {}, 78 lualine_x = {},
79 lualine_y = {}, 79 lualine_y = {},
80 lualine_z = {} 80 lualine_z = {}