shadcn-svelte.nvim Svelte Themes

Shadcn Svelte.nvim

A neovim plugin for quick installation of shadcn-svelte components into your project

shadcn-svelte.nvim

A plugin for quick installation of shadcn-svelte components into your project

Installation

lazy.nvim

Install with you preferred plugin manager

{
  "phishbacon/shadcn-svelte.nvim"
}

Usage

Use the command ShadcnSvelte <component name> to quickly install components into your project

Setup

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>"
  }
})

Top categories

Loading Svelte Themes