mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
22 lines
642 B
Lua
22 lines
642 B
Lua
local status_ok, which_key = pcall(require, "which-key")
|
|
if status_ok then
|
|
local show = which_key.show
|
|
local show_override = astronvim.user_plugin_opts("which-key.show", nil, false)
|
|
which_key.show = type(show_override) == "function" and show_override(show)
|
|
or function(keys, opts)
|
|
if vim.bo.filetype ~= "TelescopePrompt" then
|
|
show(keys, opts)
|
|
end
|
|
end
|
|
which_key.setup(astronvim.user_plugin_opts("plugins.which-key", {
|
|
plugins = {
|
|
spelling = { enabled = true },
|
|
presets = { operators = false },
|
|
},
|
|
window = {
|
|
border = "rounded",
|
|
padding = { 2, 2, 2, 2 },
|
|
},
|
|
}))
|
|
end
|