2024-12-10 09:51:50 +08:00
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
|
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
|
|
vim.fn.system({
|
|
|
|
"git",
|
|
|
|
"clone",
|
|
|
|
"--filter=blob:none",
|
|
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
|
|
"--branch=stable", -- latest stable release
|
|
|
|
lazypath,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
|
|
|
|
require("lazy").setup({
|
2024-12-10 10:38:36 +08:00
|
|
|
-- NeoVim MonoKai Theme
|
2024-12-10 09:51:50 +08:00
|
|
|
"tanvirtin/monokai.nvim",
|
|
|
|
|
|
|
|
-- Vscode-like pictograms
|
|
|
|
{
|
|
|
|
"onsails/lspkind.nvim",
|
|
|
|
event = { "VimEnter" },
|
|
|
|
},
|
|
|
|
-- Auto-completion engine
|
|
|
|
{
|
|
|
|
"hrsh7th/nvim-cmp",
|
|
|
|
dependencies = {
|
|
|
|
"lspkind.nvim",
|
|
|
|
"hrsh7th/cmp-nvim-lsp", -- lsp auto-completion
|
|
|
|
"hrsh7th/cmp-buffer", -- buffer auto-completion
|
|
|
|
"hrsh7th/cmp-path", -- path auto-completion
|
|
|
|
"hrsh7th/cmp-cmdline", -- cmdline auto-completion
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
require("nvim-cmp")
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
-- Code snippet engine
|
|
|
|
{
|
|
|
|
"L3MON4D3/LuaSnip",
|
|
|
|
version = "v2.*",
|
|
|
|
},
|
|
|
|
|
|
|
|
-- LSP Manager
|
|
|
|
"williamboman/mason.nvim",
|
|
|
|
"williamboman/mason-lspconfig.nvim",
|
|
|
|
"neovim/nvim-lspconfig",
|
2024-12-10 10:38:36 +08:00
|
|
|
|
|
|
|
-- LuaLine
|
|
|
|
"nvim-lualine/lualine.nvim",
|
|
|
|
|
2024-12-10 09:51:50 +08:00
|
|
|
})
|