mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-08 00:14:38 +02:00
feat(keymaps): dynamic which-key icons/descriptions for toggles
This commit is contained in:
parent
6911327a5e
commit
82a3ccc4d6
5 changed files with 192 additions and 115 deletions
|
@ -193,7 +193,7 @@ return {
|
|||
function()
|
||||
require("which-key").show({ global = false })
|
||||
end,
|
||||
desc = "Buffer Local Keymaps (which-key)",
|
||||
desc = "Buffer Keymaps (which-key)",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
|
|
|
@ -150,7 +150,7 @@ return {
|
|||
and vim.bo[buffer].buftype == ""
|
||||
and not vim.tbl_contains(opts.inlay_hints.exclude, vim.bo[buffer].filetype)
|
||||
then
|
||||
LazyVim.toggle.inlay_hints(buffer, true)
|
||||
vim.lsp.inlay_hint.enable(true, { bufnr = buffer })
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue