nvim: lua: plugins/colors: Switch to which-key.nvim

This commit is contained in:
Sanchayan Maity 2021-04-29 19:34:24 +05:30
parent 07bd4e8592
commit 86de71d5da
3 changed files with 7 additions and 8 deletions

View file

@ -648,10 +648,11 @@ local highlight_groups = {
--[[ 4.4.11 Which key ]]
WhichKey = 'Function' ,
WhichKeySeperator = 'DiffAdded',
WhichKeySeperator = {bg=black, fg=green, style=NONE },
WhichKeyGroup = 'Keyword' ,
WhichKeyDesc = {bg=black, fg=orange, style=NONE },
WhichKeyFloating = 'Pmenu' ,
WhichKeyFloat = 'Pmenu' ,
WhichKeyValue = 'Comment' ,
--[[ 4.4.12 conflict-marker ]]
ConflictMarkerBegin = {bg=black, fg=purple, style=NONE },

View file

@ -1,6 +1,4 @@
local remap = vim.api.nvim_set_keymap
local wk = require("which-key")
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 })
wk.register({}, { prefix = "<Leader>" })
wk.register({}, { prefix = "<LocalLeader>" })

View file

@ -90,7 +90,7 @@ local init = function ()
use 'justinmk/vim-dirvish'
-- Show leader key bindings
use {
'liuchengxu/vim-which-key',
'folke/which-key.nvim',
config = "require('modules.which_key')"
}
-- Clipboard