nvim: add indicators for 'spell' and 'wrap' to lualine

This commit is contained in:
Fernando Schauenburg 2024-07-23 01:19:04 +02:00
parent 932b7b0047
commit 7f15d314fb

View file

@ -13,6 +13,16 @@ return {
local status = component.colored_if_focused("fschauen.status")
local whitespace = component.colored_if_focused("fschauen.whitespace")
local spell = {
function() return "󰓆" end,
cond = function() return vim.o.spell end,
}
local wrap = {
function() return "󰖶" end,
cond = function() return vim.o.wrap end,
}
local sections = {
lualine_a = {
"fschauen.mode",
@ -30,6 +40,8 @@ return {
{ filetype, cond = window.is_medium },
},
lualine_y = {
spell,
wrap,
{ "fileformat", cond = window.is_medium },
"progress",
},