82 lines
1.9 KiB
Lua
82 lines
1.9 KiB
Lua
local fn = vim.fn
|
|
|
|
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", -- latest stable release
|
|
lazypath,
|
|
})
|
|
end
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
local status_ok, lazy = pcall(require, "lazy")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
lazy.setup(
|
|
{
|
|
spec = {
|
|
{ import = "user.plugins" },
|
|
|
|
{ "hrsh7th/nvim-cmp", event = "VeryLazy" }, -- The completion plugin
|
|
{ "hrsh7th/cmp-buffer", event = "VeryLazy" }, -- buffer completions
|
|
{ "hrsh7th/cmp-path", event = "VeryLazy" }, -- path completions
|
|
{ "hrsh7th/cmp-cmdline", event = "VeryLazy" }, -- cmdline completions
|
|
{ "saadparwaiz1/cmp_luasnip", event = "VeryLazy" }, -- snippet completions
|
|
{ "hrsh7th/cmp-nvim-lsp", event = "VeryLazy" },
|
|
|
|
-- snippets
|
|
|
|
-- LSP
|
|
{ "williamboman/mason.nvim", event = "VeryLazy" }, -- simple to use language server installer
|
|
{ "williamboman/mason-lspconfig.nvim", event = "VeryLazy" },
|
|
{ "neovim/nvim-lspconfig", event = "VeryLazy" }, -- enable LSP
|
|
{
|
|
"folke/zen-mode.nvim",
|
|
opts = {
|
|
window = {
|
|
backdrop = 1
|
|
}
|
|
},
|
|
event = "VeryLazy"
|
|
},
|
|
|
|
|
|
{
|
|
"nvimtools/none-ls.nvim",
|
|
event = "VeryLazy"
|
|
},
|
|
|
|
{ "lukas-reineke/lsp-format.nvim", event = "VeryLazy" },
|
|
|
|
--comment out
|
|
{ "tpope/vim-commentary", event = "VeryLazy" },
|
|
{ "windwp/nvim-ts-autotag", event = "VeryLazy" },
|
|
|
|
{
|
|
"rebelot/kanagawa.nvim",
|
|
lazy = false,
|
|
priority = 1000,
|
|
},
|
|
|
|
--debugging
|
|
{ "mfussenegger/nvim-dap", event = "VeryLazy" },
|
|
{
|
|
"rcarriga/nvim-dap-ui",
|
|
dependencies = {
|
|
"mfussenegger/nvim-dap",
|
|
"nvim-neotest/nvim-nio"
|
|
},
|
|
event = { "VeryLazy" }
|
|
},
|
|
|
|
},
|
|
}
|
|
)
|