A plugin for quick installation of shadcn-svelte components into your project
Install with you preferred plugin manager
{
"phishbacon/shadcn-svelte.nvim"
}
Use the command ShadcnSvelte <component name>
to quickly install components into your project
Customization can be done through the setup()
method. The default configuration is shown below. Supported package managers include pnpm | bun | yarn | npm
. There is only one keymap, which will close the floating terminal window. It is mapped to <Esc>
by default.
require("shadcn-svelte").setup({
package_manager = "pnpm",
window_size = {
height = 60, -- percent of window height (range 1-100)
width = 30, -- percent of window width (range 1-100)
},
keymap = {
close_window = "<Esc>"
}
})