-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix integration tutorials on lazy dependency issue (#133)
- Loading branch information
1 parent
1c37b1c
commit 047417b
Showing
4 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
-- 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", | ||
lazypath, | ||
}) | ||
end | ||
vim.opt.runtimepath:prepend(lazypath) | ||
|
||
-- install plugins | ||
local plugins = { | ||
{ | ||
"nvim-lualine/lualine.nvim", | ||
event = "VimEnter", | ||
dependencies = { | ||
"nvim-tree/nvim-web-devicons", | ||
{ | ||
"linrongbin16/lsp-progress.nvim", | ||
opts = {}, | ||
}, | ||
}, | ||
config = function(_, opts) | ||
require("lualine").setup(opts) | ||
|
||
vim.api.nvim_create_augroup("lualine_augroup", { clear = true }) | ||
vim.api.nvim_create_autocmd("User", { | ||
group = "lualine_augroup", | ||
pattern = "LspProgressStatusUpdated", | ||
callback = require("lualine").refresh, | ||
}) | ||
end, | ||
opts = { | ||
options = { | ||
component_separators = { left = "|", right = "|" }, | ||
globalstatus = true, | ||
}, | ||
sections = { | ||
lualine_a = { | ||
{ | ||
"mode", | ||
fmt = function(str) | ||
return str:sub(1, 1) | ||
end, | ||
}, | ||
}, | ||
lualine_b = { | ||
{ "branch", icons_enabled = false }, | ||
}, | ||
lualine_c = { | ||
function() | ||
return require("lsp-progress").progress() | ||
end, | ||
}, | ||
}, | ||
tabline = { | ||
lualine_a = { | ||
"buffers", | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
-- Setup lazy.nvim | ||
require("lazy").setup(plugins) |
File renamed without changes.
File renamed without changes.