From 7f15d314fb79db5f0bcafd2659c36866494210d3 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Tue, 23 Jul 2024 01:19:04 +0200 Subject: [PATCH] nvim: add indicators for 'spell' and 'wrap' to lualine --- config/nvim/lua/fschauen/plugins/lualine.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/nvim/lua/fschauen/plugins/lualine.lua b/config/nvim/lua/fschauen/plugins/lualine.lua index 4513f22..41acf1e 100644 --- a/config/nvim/lua/fschauen/plugins/lualine.lua +++ b/config/nvim/lua/fschauen/plugins/lualine.lua @@ -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", },