nvim: plugins: Switch from vim-which-key to which-key

This commit is contained in:
Sanchayan Maity 2021-09-26 17:53:32 +05:30
parent 00670a867f
commit 975e6a646e
3 changed files with 2 additions and 7 deletions

View File

@ -0,0 +1 @@
require("which-key").setup {}

View File

@ -1,6 +0,0 @@
local remap = vim.api.nvim_set_keymap
vim.g.which_key_use_floating_win = 1
remap('n', '<Leader>', ':<C-U>WhichKey \'<Space>\'<CR>', { noremap = true, silent = true })
remap('n', '<LocalLeader>', ':<C-U>WhichKey \',\'<CR>', { noremap = true, silent = true })

View File

@ -62,7 +62,7 @@ local init = function ()
-- Directory viewer
use 'justinmk/vim-dirvish'
-- Show leader key bindings
use 'liuchengxu/vim-which-key'
use 'folke/which-key.nvim'
-- Toggle terminal
use 'voldikss/vim-floaterm'
-- Take care of sudo