nvim: lua: plugins/colors: Switch to which-key.nvim
This commit is contained in:
parent
07bd4e8592
commit
86de71d5da
3 changed files with 7 additions and 8 deletions
|
@ -648,10 +648,11 @@ local highlight_groups = {
|
||||||
|
|
||||||
--[[ 4.4.11 Which key ]]
|
--[[ 4.4.11 Which key ]]
|
||||||
WhichKey = 'Function' ,
|
WhichKey = 'Function' ,
|
||||||
WhichKeySeperator = 'DiffAdded',
|
WhichKeySeperator = {bg=black, fg=green, style=NONE },
|
||||||
WhichKeyGroup = 'Keyword' ,
|
WhichKeyGroup = 'Keyword' ,
|
||||||
WhichKeyDesc = {bg=black, fg=orange, style=NONE },
|
WhichKeyDesc = {bg=black, fg=orange, style=NONE },
|
||||||
WhichKeyFloating = 'Pmenu' ,
|
WhichKeyFloat = 'Pmenu' ,
|
||||||
|
WhichKeyValue = 'Comment' ,
|
||||||
|
|
||||||
--[[ 4.4.12 conflict-marker ]]
|
--[[ 4.4.12 conflict-marker ]]
|
||||||
ConflictMarkerBegin = {bg=black, fg=purple, style=NONE },
|
ConflictMarkerBegin = {bg=black, fg=purple, style=NONE },
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
local remap = vim.api.nvim_set_keymap
|
local wk = require("which-key")
|
||||||
|
|
||||||
vim.g.which_key_use_floating_win = 1
|
wk.register({}, { prefix = "<Leader>" })
|
||||||
|
wk.register({}, { prefix = "<LocalLeader>" })
|
||||||
remap('n', '<Leader>', ':<C-U>WhichKey \'<Space>\'<CR>', { noremap = true, silent = true })
|
|
||||||
remap('n', '<LocalLeader>', ':<C-U>WhichKey \',\'<CR>', { noremap = true, silent = true })
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ local init = function ()
|
||||||
use 'justinmk/vim-dirvish'
|
use 'justinmk/vim-dirvish'
|
||||||
-- Show leader key bindings
|
-- Show leader key bindings
|
||||||
use {
|
use {
|
||||||
'liuchengxu/vim-which-key',
|
'folke/which-key.nvim',
|
||||||
config = "require('modules.which_key')"
|
config = "require('modules.which_key')"
|
||||||
}
|
}
|
||||||
-- Clipboard
|
-- Clipboard
|
||||||
|
|
Loading…
Reference in a new issue