Skip to content

Commit

Permalink
Nvim: change lazypath
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Nov 28, 2024
1 parent e0d49d0 commit 118e1e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .config/nvim/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
lazy/
lazy-lock.json
6 changes: 5 additions & 1 deletion .config/nvim/lua/config/lazy.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
local config_home = os.getenv("XDG_CONFIG_HOME") or "~/.config"
local lazy_home = config_home .. "/nvim/lazy"

local lazypath = lazy_home .. "/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
Expand All @@ -16,6 +19,7 @@ end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
root = lazy_home,
spec = {
{ import = "plugins" },
},
Expand Down

0 comments on commit 118e1e9

Please sign in to comment.