function to show spell indicator
This commit is contained in:
parent
582f5ac594
commit
ab6f21bd07
|
@ -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" },
|
||||
|
|
Loading…
Reference in a new issue