From c9fefc73bb300596552b4098ea213f7b5325a347 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 11 Oct 2021 02:06:03 +0300 Subject: neovim: lualine spell block --- .config/nvim/lua/plugin_settings.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index e9c4cd4..3676c4b 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -29,6 +29,15 @@ g.vimwiki_hl_headers = 1 -- }}} vimwiki -- -- lualine {{{ -- + +local function lualine_spell() + if vim.wo.spell then + return [[spell]] + else + return + end +end + require'lualine'.setup { options = { lower = false, @@ -40,7 +49,7 @@ require'lualine'.setup { }, sections = { lualine_a = {{'mode', lower = true}}, - lualine_b = {'branch', 'diff'}, + lualine_b = {'branch', 'diff', {lualine_spell}}, lualine_c = {'filename'}, lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_y = {'progress'}, @@ -64,7 +73,8 @@ require'lualine'.setup { tabline = {}, extensions = {} } --- }}} requi -- + +-- }}} lualine -- -- cutlass suite {{{ -- -- cgit v1.2.3-70-g09d2