docs(vim): Note for myself on how to do lazy loading
This commit is contained in:
parent
57e226d2db
commit
7d10d909fa
1 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
-- << Getting lazy.nvim for the first time
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
|
@ -10,6 +11,7 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
-- >>
|
||||
|
||||
require("lazy").setup({
|
||||
{
|
||||
|
@ -17,5 +19,11 @@ require("lazy").setup({
|
|||
opts = {},
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
},
|
||||
{
|
||||
"tpope/vim-commentary", -- shortcut to comment a line
|
||||
cmd = "StartupTime", -- Note to self: lazy load on command
|
||||
init = function()
|
||||
-- Note to self: init is called during startup. Configuration for vim plugins typically should be set in an init function
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue