diff options
author | kylo252 <[email protected]> | 2022-03-24 15:48:33 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-03-24 15:48:33 +0100 |
commit | f41edc6dfb0d2a4c9875da08bbbdab121e52048f (patch) | |
tree | c6541278c6314e58d991bc95e547e903ac58340a /lua/lvim/core/lualine/styles.lua | |
parent | 5ee460fdc751a91cdf7a4f4aab2ab784ebdb36fd (diff) | |
parent | 1ea836e3601b7ed0ed0496888dc14683bfbcce75 (diff) |
Merge remote-tracking branch 'origin/rolling'1.1.3
Diffstat (limited to 'lua/lvim/core/lualine/styles.lua')
-rw-r--r-- | lua/lvim/core/lualine/styles.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lua/lvim/core/lualine/styles.lua b/lua/lvim/core/lualine/styles.lua index 0843aead..45c6c639 100644 --- a/lua/lvim/core/lualine/styles.lua +++ b/lua/lvim/core/lualine/styles.lua @@ -10,6 +10,7 @@ local styles = { styles.none = { style = "none", options = { + theme = "auto", icons_enabled = true, component_separators = { left = "", right = "" }, section_separators = { left = "", right = "" }, @@ -38,6 +39,7 @@ styles.none = { styles.default = { style = "default", options = { + theme = "auto", icons_enabled = true, component_separators = { left = "", right = "" }, section_separators = { left = "", right = "" }, @@ -66,10 +68,11 @@ styles.default = { styles.lvim = { style = "lvim", options = { + theme = "auto", icons_enabled = true, component_separators = { left = "", right = "" }, section_separators = { left = "", right = "" }, - disabled_filetypes = { "dashboard", "NvimTree", "Outline" }, + disabled_filetypes = { "alpha", "NvimTree", "Outline" }, }, sections = { lualine_a = { @@ -113,10 +116,10 @@ function M.get_style(style) if not vim.tbl_contains(style_keys, style) then local Log = require "lvim.core.log" Log:error( - "Invalid lualine style", - string.format('"%s"', style), - "options are: ", - string.format('"%s"', table.concat(style_keys, '", "')) + "Invalid lualine style" + .. string.format('"%s"', style) + .. "options are: " + .. string.format('"%s"', table.concat(style_keys, '", "')) ) Log:debug '"lvim" style is applied.' style = "lvim" @@ -127,9 +130,6 @@ end function M.update() local style = M.get_style(lvim.builtin.lualine.style) - if lvim.builtin.lualine.options.theme == nil then - lvim.builtin.lualine.options.theme = lvim.colorscheme - end lvim.builtin.lualine = vim.tbl_deep_extend("keep", lvim.builtin.lualine, style) end |