48 lines
1.0 KiB
Lua
48 lines
1.0 KiB
Lua
|
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({
|
||
|
-- Theme
|
||
|
"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",
|
||
|
})
|