diff options
| author | eric.marin <maarin.eric@gmail.com> | 2025-03-05 22:25:17 +0100 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2025-03-05 22:26:26 +0100 |
| commit | 6d95f092e30737d49b650891e93de518498523a3 (patch) | |
| tree | 469db0917af455a1a354123f8d5ee27a228dae38 /nvim/lua/plugins/lualine.lua | |
| parent | 4de5a217c25fe83bb54063f8d842b78c9e6d7fb3 (diff) | |
| download | dotfiles-6d95f092e30737d49b650891e93de518498523a3.tar.gz dotfiles-6d95f092e30737d49b650891e93de518498523a3.zip | |
neorg
Diffstat (limited to '')
| -rw-r--r-- | nvim/lua/plugins/lualine.lua | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/nvim/lua/plugins/lualine.lua b/nvim/lua/plugins/lualine.lua index d9a108b..f45a5a5 100644 --- a/nvim/lua/plugins/lualine.lua +++ b/nvim/lua/plugins/lualine.lua @@ -1,34 +1,32 @@ -local config = function() - require("lualine").setup({ - options = { - theme = "auto", - globalstatus = true, - disabled_filetypes = { "toggleterm", "lazy", "oil", "dashboard", "TelescopePrompt", "oil_preview" } +local opts = { + options = { + theme = "auto", + globalstatus = true, + disabled_filetypes = { "toggleterm", "lazy", "oil", "dashboard", "TelescopePrompt", "oil_preview" } + }, + sections = { + lualine_a = { "mode" }, + lualine_b = { "branch", "diff", + { + "diagnostics", + sections = { "error", "warn", "info", "hint" }, + symbols = { error = " ", warn = " ", info = " ", hint = " " }, + } }, - sections = { - lualine_a = { "mode" }, - lualine_b = { "branch", "diff", - { - "diagnostics", - sections = { "error", "warn", "info", "hint" }, - symbols = { error = " ", warn = " ", info = " ", hint = " " }, - } - }, - lualine_c = { - { - require("lazy.status").updates, - cond = require("lazy.status").has_updates, - color = { fg = "#ff9e64" }, - }, + lualine_c = { + { + require("lazy.status").updates, + cond = require("lazy.status").has_updates, + color = { fg = "#ff9e64" }, }, }, - }) -end + }, +} return { "nvim-lualine/lualine.nvim", lazy = true, event = "VeryLazy", -- event = { "BufReadPost", "BufWritePost", "BufNewFile" }, - config = config, + opts = opts, } |
