You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am curious if Lazy can merge 2 plugin definitions or will it just use the last instance of the plugin definition? To give a little info to help better understand. I want to start my config over and use the great kick starter config as the base. The thing is I want to make some changes to some of the plugins and wondering if I have to just copy what they have and make changes or can I leave it and just define the section again and just add the changes I want?
{ -- Fuzzy Finder (files, lsp, etc)'nvim-telescope/telescope.nvim',
event='VimEnter',
branch='0.1.x',
dependencies= {
'nvim-lua/plenary.nvim',
{ -- If encountering errors, see telescope-fzf-native README for install instructions'nvim-telescope/telescope-fzf-native.nvim',
-- `build` is used to run some command when the plugin is installed/updated.-- This is only run then, not every time Neovim starts up.build='make',
-- `cond` is a condition used to determine whether this plugin should be-- installed and loaded.cond=function()
returnvim.fn.executable'make' ==1end,
},
{ 'nvim-telescope/telescope-ui-select.nvim' },
-- Useful for getting pretty icons, but requires a Nerd Font.
{ 'nvim-tree/nvim-web-devicons', enabled=vim.g.have_nerd_font },
},
config=function()
...end
}
My hope in another file that is sources later on the I could do something like
{
'nvim-telescope/telescope.nvim',
config=function()
pickers= {
...
}
end
}
The end result is it would deep merge it into one. If this is something Lazy cannot do, that is fine. I am just curious on the override path I need to take. Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am curious if Lazy can merge 2 plugin definitions or will it just use the last instance of the plugin definition? To give a little info to help better understand. I want to start my config over and use the great kick starter config as the base. The thing is I want to make some changes to some of the plugins and wondering if I have to just copy what they have and make changes or can I leave it and just define the section again and just add the changes I want?
Here is how kickstarter defines the telescope plugin
My hope in another file that is sources later on the I could do something like
The end result is it would deep merge it into one. If this is something Lazy cannot do, that is fine. I am just curious on the override path I need to take. Thanks
Beta Was this translation helpful? Give feedback.
All reactions