Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lua/modicator/integration/lualine/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ local function set_highlight_from_lualine(mode, mode_section_letter)
local highlight_exists = require('modicator.utils').highlight_exists
if hl and not highlight_exists(mode_hl_group) then
local options = modicator.get_options()
local highlight_level = options.integration.lualine.highlight
vim.api.nvim_set_hl(0, mode_hl_group, { fg = hl[highlight_level] })
local hl_table = options.integration.lualine.highlight == "bg"
and { fg = hl["bg"] }
or { fg = hl["fg"], bg = hl["bg"] }
vim.api.nvim_set_hl(0, mode_hl_group, hl_table)
end
end

Expand Down