nvim: plugins: Switch from vim-which-key to which-key
This commit is contained in:
parent
00670a867f
commit
975e6a646e
3 changed files with 2 additions and 7 deletions
1
nvim/.config/nvim/after/plugin/which-key.lua
Normal file
1
nvim/.config/nvim/after/plugin/which-key.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require("which-key").setup {}
|
|
@ -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 })
|
|
|
@ -62,7 +62,7 @@ local init = function ()
|
||||||
-- Directory viewer
|
-- Directory viewer
|
||||||
use 'justinmk/vim-dirvish'
|
use 'justinmk/vim-dirvish'
|
||||||
-- Show leader key bindings
|
-- Show leader key bindings
|
||||||
use 'liuchengxu/vim-which-key'
|
use 'folke/which-key.nvim'
|
||||||
-- Toggle terminal
|
-- Toggle terminal
|
||||||
use 'voldikss/vim-floaterm'
|
use 'voldikss/vim-floaterm'
|
||||||
-- Take care of sudo
|
-- Take care of sudo
|
||||||
|
|
Loading…
Reference in a new issue