diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-22 16:44:32 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-22 16:44:32 +0100 |
commit | 7a60f2d61c44cdba85cbcf10b561b0401e9b105a (patch) | |
tree | 0f92b1e21f84c907bcd1c373625960d2834dc326 /lua/config/lualine.lua | |
parent | c22beb43a4526372abbd6c3dab48051e6b4e2a20 (diff) |
fix: format with stylua config
Diffstat (limited to 'lua/config/lualine.lua')
-rw-r--r-- | lua/config/lualine.lua | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/lua/config/lualine.lua b/lua/config/lualine.lua index b2e5cce..15ca449 100644 --- a/lua/config/lualine.lua +++ b/lua/config/lualine.lua @@ -2,63 +2,63 @@ local status_ok, lualine = pcall(require, "lualine") if not status_ok then - return + return end local hide_in_width = function() - return vim.fn.winwidth(0) > 80 + return vim.fn.winwidth(0) > 80 end local diagnostics = { - "diagnostics", - sources = { "nvim_diagnostic" }, - sections = { "error", "warn" }, - symbols = { error = " ", warn = " " }, - colored = false, - update_in_insert = false, - always_visible = true, + "diagnostics", + sources = { "nvim_diagnostic" }, + sections = { "error", "warn" }, + symbols = { error = " ", warn = " " }, + colored = false, + update_in_insert = false, + always_visible = true, } local diff = { - "diff", - colored = false, - symbols = { added = " ", modified = " ", removed = " " }, -- changes diff symbols - cond = hide_in_width, + "diff", + colored = false, + symbols = { added = " ", modified = " ", removed = " " }, -- changes diff symbols + cond = hide_in_width, } local branch = { - "b:gitsigns_head", - icon = " ", - cond = hide_in_width, + "b:gitsigns_head", + icon = " ", + cond = hide_in_width, } local filetype = { "filetype", cond = hide_in_width, color = {} } -lualine.setup({ - options = { - icons_enabled = true, - theme = "auto", - component_separators = { left = "", right = "" }, - section_separators = { left = "", right = "" }, - disabled_filetypes = { "alpha", "dashboard", "NvimTree", "Outline" }, - always_divide_middle = true, - }, - sections = { - lualine_a = { "mode" }, - lualine_b = { branch, "filename" }, - lualine_c = { diff }, - lualine_x = { diagnostics, filetype }, - lualine_y = {}, - lualine_z = { "location", "progress", "encoding" }, - }, - inactive_sections = { - lualine_a = { "mode" }, - lualine_b = { "filename" }, - lualine_c = {}, - lualine_x = {}, - lualine_y = {}, - lualine_z = { "location", "progress", "encoding" }, - }, - tabline = {}, - extensions = {}, -}) +lualine.setup { + options = { + icons_enabled = true, + theme = "auto", + component_separators = { left = "", right = "" }, + section_separators = { left = "", right = "" }, + disabled_filetypes = { "alpha", "dashboard", "NvimTree", "Outline" }, + always_divide_middle = true, + }, + sections = { + lualine_a = { "mode" }, + lualine_b = { branch, "filename" }, + lualine_c = { diff }, + lualine_x = { diagnostics, filetype }, + lualine_y = {}, + lualine_z = { "location", "progress", "encoding" }, + }, + inactive_sections = { + lualine_a = { "mode" }, + lualine_b = { "filename" }, + lualine_c = {}, + lualine_x = {}, + lualine_y = {}, + lualine_z = { "location", "progress", "encoding" }, + }, + tabline = {}, + extensions = {}, +} |