Skip to content

Commit 9dcc375

Browse files
committed
refactor(nvim): switch packard.nvim loading to packadd with core/opt path
1 parent ac6a92e commit 9dcc375

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ vim.g.mapleader = vim.keycode("<space>")
1010
vim.g.maplocalleader = vim.keycode(",")
1111

1212
-- Bootstrap packard.nvim (use local copy for debugging)
13-
local packpath = vim.fn.stdpath("data") .. "/site/pack/packard/start/packard.nvim"
13+
local packpath = vim.fn.stdpath("data") .. "/site/pack/core/opt/packard.nvim"
1414
if vim.fn.isdirectory(packpath) == 0 then
1515
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/ruicsh/packard.nvim.git", packpath })
1616
end
17-
vim.opt.rtp:prepend(packpath)
17+
vim.cmd.packadd("packard.nvim") -- Add this line
1818

1919
require("packard").setup({
2020
specs_dir = "lua/plugins",

nvim-pack-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@
196196
"version": "'1d48e090f6d1d53dda9fb5094af3f2006ebbb858'"
197197
},
198198
"packard.nvim": {
199-
"rev": "041f4d2d949b3498421ae510cab2dfea8345d079",
199+
"rev": "f81ed48bd86206ad4ae1b52dc7b4e4ead003d516",
200200
"src": "https://github.com/ruicsh/packard.nvim.git",
201-
"version": "'041f4d2d949b3498421ae510cab2dfea8345d079'"
201+
"version": "'f81ed48bd86206ad4ae1b52dc7b4e4ead003d516'"
202202
},
203203
"plenary.nvim": {
204204
"rev": "74b06c6c75e4eeb3108ec01852001636d85a932b",

0 commit comments

Comments
 (0)