From 167534d65fdedebdcabe4fe60012cd5e7a4a8c5d Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Thu, 4 Apr 2024 15:38:40 +0200 Subject: [PATCH] Re-add whichkey; remove tpipeline --- .../nvim/lua/disabled_plugins/whichkey.lua | 15 ------- .config/nvim/lua/plugins/tpipeline.lua | 5 --- .config/nvim/lua/plugins/whichkey.lua | 42 +++++++++++++++++++ 3 files changed, 42 insertions(+), 20 deletions(-) delete mode 100644 .config/nvim/lua/disabled_plugins/whichkey.lua delete mode 100644 .config/nvim/lua/plugins/tpipeline.lua create mode 100644 .config/nvim/lua/plugins/whichkey.lua diff --git a/.config/nvim/lua/disabled_plugins/whichkey.lua b/.config/nvim/lua/disabled_plugins/whichkey.lua deleted file mode 100644 index 89bf6c7..0000000 --- a/.config/nvim/lua/disabled_plugins/whichkey.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - { - "folke/which-key.nvim", - event = "VeryLazy", - init = function() - vim.o.timeout = true - vim.o.timeoutlen = 300 - end, - opts = { - -- your configuration comes here - -- or leave it empty to use the default settings - -- refer to the configuration section below - } - } -} diff --git a/.config/nvim/lua/plugins/tpipeline.lua b/.config/nvim/lua/plugins/tpipeline.lua deleted file mode 100644 index da89a04..0000000 --- a/.config/nvim/lua/plugins/tpipeline.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - { - 'vimpostor/vim-tpipeline' - } -} diff --git a/.config/nvim/lua/plugins/whichkey.lua b/.config/nvim/lua/plugins/whichkey.lua new file mode 100644 index 0000000..5ab420e --- /dev/null +++ b/.config/nvim/lua/plugins/whichkey.lua @@ -0,0 +1,42 @@ +return { + { + "folke/which-key.nvim", + event = "VeryLazy", + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + end, + opts = { + defaults = { + ["x"] = { + name = "+Trouble" + } + } + }, + config = function() + local wk = require("which-key") + wk.register({ + [""] = { + l = { + name = "+LSP" + }, + x = { + name = "+Trouble" + }, + o = { + name = "+Overseer" + }, + d = { + name = "+Debug" + }, + f = { + name = "+Find" + }, + s = { + name = "+Session" + }, + } + }) + end + } +}