Revert "nvim: lua: plugins/colors: Switch to which-key.nvim"
This reverts commit 86de71d5da
.
This plugin seems to create problems for things that should work. For
example, trying to paste with 'p' triggers which-key when it should not.
Disabling everything in setup except for Leader prefixed keys does not
work either.
This commit is contained in:
parent
86de71d5da
commit
3c3558b3d0
3 changed files with 8 additions and 7 deletions
|
@ -648,11 +648,10 @@ local highlight_groups = {
|
||||||
|
|
||||||
--[[ 4.4.11 Which key ]]
|
--[[ 4.4.11 Which key ]]
|
||||||
WhichKey = 'Function' ,
|
WhichKey = 'Function' ,
|
||||||
WhichKeySeperator = {bg=black, fg=green, style=NONE },
|
WhichKeySeperator = 'DiffAdded',
|
||||||
WhichKeyGroup = 'Keyword' ,
|
WhichKeyGroup = 'Keyword' ,
|
||||||
WhichKeyDesc = {bg=black, fg=orange, style=NONE },
|
WhichKeyDesc = {bg=black, fg=orange, style=NONE },
|
||||||
WhichKeyFloat = 'Pmenu' ,
|
WhichKeyFloating = '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,4 +1,6 @@
|
||||||
local wk = require("which-key")
|
local remap = vim.api.nvim_set_keymap
|
||||||
|
|
||||||
wk.register({}, { prefix = "<Leader>" })
|
vim.g.which_key_use_floating_win = 1
|
||||||
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 {
|
||||||
'folke/which-key.nvim',
|
'liuchengxu/vim-which-key',
|
||||||
config = "require('modules.which_key')"
|
config = "require('modules.which_key')"
|
||||||
}
|
}
|
||||||
-- Clipboard
|
-- Clipboard
|
||||||
|
|
Loading…
Reference in a new issue