diff options
author | Yigit Sever | 2021-10-11 02:06:03 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-11 02:06:03 +0300 |
commit | c9fefc73bb300596552b4098ea213f7b5325a347 (patch) | |
tree | 78387d87c021501cf3c116ddfa807b5d046b934a /.config/nvim | |
parent | dbccded76d83275ae2795d60ed85213e4648f970 (diff) | |
download | dotfiles-c9fefc73bb300596552b4098ea213f7b5325a347.tar.gz dotfiles-c9fefc73bb300596552b4098ea213f7b5325a347.tar.bz2 dotfiles-c9fefc73bb300596552b4098ea213f7b5325a347.zip |
neovim: lualine spell block
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 14 |
1 files 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 | |||
29 | -- }}} vimwiki -- | 29 | -- }}} vimwiki -- |
30 | 30 | ||
31 | -- lualine {{{ -- | 31 | -- lualine {{{ -- |
32 | |||
33 | local function lualine_spell() | ||
34 | if vim.wo.spell then | ||
35 | return [[spell]] | ||
36 | else | ||
37 | return | ||
38 | end | ||
39 | end | ||
40 | |||
32 | require'lualine'.setup { | 41 | require'lualine'.setup { |
33 | options = { | 42 | options = { |
34 | lower = false, | 43 | lower = false, |
@@ -40,7 +49,7 @@ require'lualine'.setup { | |||
40 | }, | 49 | }, |
41 | sections = { | 50 | sections = { |
42 | lualine_a = {{'mode', lower = true}}, | 51 | lualine_a = {{'mode', lower = true}}, |
43 | lualine_b = {'branch', 'diff'}, | 52 | lualine_b = {'branch', 'diff', {lualine_spell}}, |
44 | lualine_c = {'filename'}, | 53 | lualine_c = {'filename'}, |
45 | lualine_x = {'encoding', 'fileformat', 'filetype'}, | 54 | lualine_x = {'encoding', 'fileformat', 'filetype'}, |
46 | lualine_y = {'progress'}, | 55 | lualine_y = {'progress'}, |
@@ -64,7 +73,8 @@ require'lualine'.setup { | |||
64 | tabline = {}, | 73 | tabline = {}, |
65 | extensions = {} | 74 | extensions = {} |
66 | } | 75 | } |
67 | -- }}} requi -- | 76 | |
77 | -- }}} lualine -- | ||
68 | 78 | ||
69 | -- cutlass suite {{{ -- | 79 | -- cutlass suite {{{ -- |
70 | 80 | ||