Override improvements #22
Replies: 5 comments 10 replies
-
|
Also: how do I create descriptions for new which-key sub-menus without having to overwrite the whole which-key configuration?... |
Beta Was this translation helpful? Give feedback.
-
|
I'm working on something that would make configuring plugins easier, but for now:
for which-key, you can do something like the below: {
"folke/which-key.nvim",
config = function(plugin)
-- run original config
plugin._.super.config()
require("which-key").register(add your own stuff here)I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
I just released the new functionality in See some examples from my config:
for which-key: {
"folke/which-key.nvim",
opts = function()
require("which-key").register(add your own stuff here)
end
}I removed all the special properties like For lsp check here LazyVim/lua/lazyvim/plugins/lsp/init.lua Line 14 in 2135bc1
Sorry again for breaking LazyVim, but I hope this will make it all a lot easier to configure and extend! |
Beta Was this translation helpful? Give feedback.
-
|
See also https://github.com/folke/lazy.nvim#%EF%B8%8F-importing-specs-config--opts |
Beta Was this translation helpful? Give feedback.
-
|
This is all super helpful and awesome. Thanks for the awesome hard work @folke! Super excited to dig into Lazy more. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I just made big steps in my migration from a custom Neovim setup to a configuration based on the starter template for LazyVim (https://github.com/appelgriebsch/Nv).
During the work I figured that it would be nice to add some 'override' functionality to the following items:
cmp key mappings (in coding.lua)
cmp sources (in coding.lua)
additional cmp options (like borders)
telescope key mappings (in editor.lua)
telescope extension and their options (in editor.lua)
mason ui options (in lsp.lua)
alpha dashboard buttons (in ui.lua)
Maybe a similar override function as in the lualine configuration will be handy to provide a way to override some of the settings in those scenarios?!
Beta Was this translation helpful? Give feedback.
All reactions