diff options
author | Joe <rrbo@proton.me> | 2023-09-05 18:28:27 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-05 18:28:27 +0200 |
commit | 97f4424d75c3cf68ff663334c71566a09decd464 (patch) | |
tree | 31213885b8531a3740eb0d016536d114fd9c7491 /.config/nvim/lua/plugs-config | |
parent | upupuppu (diff) | |
download | dotfiles-bsd-97f4424d75c3cf68ff663334c71566a09decd464.tar.gz dotfiles-bsd-97f4424d75c3cf68ff663334c71566a09decd464.tar.bz2 dotfiles-bsd-97f4424d75c3cf68ff663334c71566a09decd464.tar.xz dotfiles-bsd-97f4424d75c3cf68ff663334c71566a09decd464.tar.zst dotfiles-bsd-97f4424d75c3cf68ff663334c71566a09decd464.zip |
up
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/plugs-config/lualine.lua | 21 | ||||
-rw-r--r-- | .config/nvim/lua/plugs-config/whichkey.lua | 16 |
2 files changed, 21 insertions, 16 deletions
diff --git a/.config/nvim/lua/plugs-config/lualine.lua b/.config/nvim/lua/plugs-config/lualine.lua index 3ea3a87..56e7d83 100644 --- a/.config/nvim/lua/plugs-config/lualine.lua +++ b/.config/nvim/lua/plugs-config/lualine.lua @@ -158,10 +158,6 @@ ins_left { color = { fg = colors.magenta, gui = 'bold' }, } -ins_left { 'location' } - -ins_left { 'progress', color = { fg = colors.fg, gui = 'bold' } } - ins_left { 'diagnostics', sources = { 'nvim_diagnostic' }, @@ -199,21 +195,12 @@ ins_left { return msg end, icon = ' LSP:', - color = { fg = '#ffffff', gui = 'bold' }, -} - --- Add components to right sections -ins_right { - 'o:encoding', -- option component same as &encoding in viml - fmt = string.upper, -- I'm not sure why it's upper case either ;) - cond = conditions.hide_in_width, - color = { fg = colors.green, gui = 'bold' }, + color = { fg = colors.darkblue }, } ins_right { - 'fileformat', - fmt = string.upper, - icons_enabled = false, -- I think icons are cool but Eviline doesn't have them. sigh + 'filetype', + icons_enabled = true, -- I think icons are cool but Eviline doesn't have them. sigh color = { fg = colors.green, gui = 'bold' }, } @@ -235,6 +222,8 @@ ins_right { cond = conditions.hide_in_width, } +ins_right { 'location' } + ins_right { function() return '▊' diff --git a/.config/nvim/lua/plugs-config/whichkey.lua b/.config/nvim/lua/plugs-config/whichkey.lua index f81b879..9529229 100644 --- a/.config/nvim/lua/plugs-config/whichkey.lua +++ b/.config/nvim/lua/plugs-config/whichkey.lua @@ -1,3 +1,4 @@ + local wk = require("which-key") wk.register({ b = { ':Buffers<CR>', 'buffers', noremap = true, silent = true }, @@ -25,3 +26,18 @@ wk.register({ r = { ':Rg<CR>', 'ripgrep', noremap = true, silent = true }, }, }, { prefix = '<leader>', }) +wk.setup({ + plugins = { + presets = { + operators = false, + motions = false, + text_objects = false, + window = false, + nav = false, + z = false, + g = false + }, + }, + triggers = { "<leader>" }, + triggers_nowait = { "d" }, +}) |