From 97f4424d75c3cf68ff663334c71566a09decd464 Mon Sep 17 00:00:00 2001
From: Joe <rrbo@proton.me>
Date: Tue, 5 Sep 2023 18:28:27 +0200
Subject: up

---
 .config/nvim/lua/plugs-config/lualine.lua  | 21 +++++----------------
 .config/nvim/lua/plugs-config/whichkey.lua | 16 ++++++++++++++++
 2 files changed, 21 insertions(+), 16 deletions(-)

(limited to '.config/nvim/lua/plugs-config')

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" },
+})
-- 
cgit v1.2.3