nvim: add indicators for 'spell' and 'wrap' to lualine
This commit is contained in:
parent
932b7b0047
commit
7f15d314fb
1 changed files with 12 additions and 0 deletions
|
@ -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",
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue