Skip to main content
r/AstroNvim icon

r/AstroNvim

members
online

A guide for converting lazy.nvim to AstroNvim plugin installation script A guide for converting lazy.nvim to AstroNvim plugin installation script

Hi,

lazy.nvim script is kinda industry standard. One can always find it in a README of any Neovim plugin. For instance (1):

require('lazy').setup({

{

'amekusa/auto-input-switch.nvim',

config = function()

require('auto-input-switch').setup({

-- your options

})

end

},

})

AstroNvim script will look like this (2):

return {

{

"amekusa/auto-input-switch.nvim",

lazy = false,

opts = {

-- your options

},

},

}

Is there a simple guide for converting (1) into (2)? There are some hints in the AstroNvim docs, but there's no dedicated guide. Or I didn't manage to find it.


Get it while you can 🎰🎲💰- 40 FREE SC + 80K GC + 75 FREE SC SPINS!
Image Get it while you can 🎰🎲💰- 40 FREE SC + 80K GC + 75 FREE SC SPINS!


Shoutout to the AstroNvim community Shoutout to the AstroNvim community

I have been wanting to switch to neovim for a long time, and I finally took some time during the holidays to do so. Popular reddit opinion was to not choose a distro but I am glad I did not listen to them, and picked AstroNvim.

Astro offered solid defaults out of the box and made it super easy to customize stuff, either by using the community plugins/recipes (which are AMAZING) or plonking in custom plugins. It has accelerated my vim/nvim journey and I'm really happy with my setup.

Just wanted to express my gratitude here. Cheers!