function to show spell indicator

This commit is contained in:
Enrique MP 2023-10-07 18:25:37 +02:00
parent 582f5ac594
commit ab6f21bd07

View file

@ -49,6 +49,14 @@ return {
},
}
-- spell indicator
local function spell()
if vim.wo.spell == true then
return "[" .. vim.bo.spelllang .. "]"
end
return ""
end
-- configure lualine with modified theme
lualine.setup({
options = {
@ -61,6 +69,7 @@ return {
cond = lazy_status.has_updates,
color = { fg = "#ff9e64" },
},
{ spell },
{ "encoding" },
{ "fileformat" },
{ "filetype" },