# Add Local Packages in LazyVim ## Metadata **Status**:: #x **Zettel**:: #zettel/literature **Created**:: [[2023-07-29]] **Topic**:: [[♯ Vim]] **Parent**:: [[LazyVim]] [[Neovim]] ## Synopsis Setup dev path for lazy. ```lua require("lazy").setup({ ... dev = { path = vim.fn.stdpath("config") .. "/x", pattern = {}, fallback = false, }, }) ``` Create a folder `~/.config/nvim/x` and add packages into the folder. ``` ~/.config/nvim/x/example-package ┖─ lua ┖─ example-package.lua ``` Add a spec for the package ```lua { "x/example-package", dev = true, config = true, } ``` In `example-package.lua`, it must return a table with following fields. - `config`: default config - `setup`: the setup function to load the package