mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 19:34:15 +00:00
Added 2 options for nix compatibility
Fully backwards compatible with minimal runtime impact dev.extra_paths and performance.rtp.override_base_rtp
This commit is contained in:
parent
96584866b9
commit
5f41e57c5e
4 changed files with 70 additions and 6 deletions
16
README.md
16
README.md
|
@ -322,6 +322,8 @@ return {
|
|||
dev = {
|
||||
-- directory where you store your local plugin projects
|
||||
path = "~/projects",
|
||||
---@type string[] | nil you may include a list of local paths to also check
|
||||
extra_paths = nil,
|
||||
---@type string[] plugins that match these patterns will use your local versions instead of being fetched from GitHub
|
||||
patterns = {}, -- For example {"folke"}
|
||||
fallback = false, -- Fallback to git when local plugin doesn't exist
|
||||
|
@ -424,7 +426,7 @@ return {
|
|||
rtp = {
|
||||
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
|
||||
---@type string[]
|
||||
paths = {}, -- add any custom paths here that you want to includes in the rtp
|
||||
paths = {}, -- add any custom paths here that you want to append to the rtp
|
||||
---@type string[] list any plugins you want to disable here
|
||||
disabled_plugins = {
|
||||
-- "gzip",
|
||||
|
@ -436,6 +438,18 @@ return {
|
|||
-- "tutor",
|
||||
-- "zipPlugin",
|
||||
},
|
||||
-- for niche situations where lazy breaks oddly built configurations
|
||||
-- such as those that can be produced via nix.
|
||||
---@type fun(DEFAULT: string[], ME: string, VIMRUNTIME: string, NVIM_LIB: string): string[]
|
||||
override_base_rtp = function(DEFAULT, ME, VIMRUNTIME, NVIM_LIB) return DEFAULT end
|
||||
-- DEFAULT = {
|
||||
-- vim.fn.stdpath("config"),
|
||||
-- vim.fn.stdpath("data") .. "/site",
|
||||
-- ME,
|
||||
-- VIMRUNTIME,
|
||||
-- NVIM_LIB,
|
||||
-- vim.fn.stdpath("config") .. "/after",
|
||||
-- }
|
||||
},
|
||||
},
|
||||
-- lazy can generate helptags from the headings in markdown readme files,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue