mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-19 14:44:46 +01:00
updated neovim to use modern lazy
This commit is contained in:
26
.config/nvim/lua/loadplugins.lua
Normal file
26
.config/nvim/lua/loadplugins.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
-- bootstrap lazy
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
return require("lazy").setup(
|
||||
{
|
||||
-- import plugins from the plugins directory
|
||||
{ import = "plugins" },
|
||||
},
|
||||
-- lazy.nvim configuration
|
||||
{
|
||||
ui = {
|
||||
icons = Lazy_signs,
|
||||
},
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user