mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
moved to lazy
This commit is contained in:
68
.config/nvim/lua/wicked/lazy.lua
Normal file
68
.config/nvim/lua/wicked/lazy.lua
Normal file
@@ -0,0 +1,68 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
'wbthomason/packer.nvim',
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
},
|
||||
{
|
||||
'neanias/everforest-nvim',
|
||||
config = function()
|
||||
vim.cmd('colorscheme everforest')
|
||||
end
|
||||
},
|
||||
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
'theprimeagen/harpoon',
|
||||
'mbbill/undotree',
|
||||
'tpope/vim-fugitive',
|
||||
'idanarye/vim-merginal',
|
||||
'williamboman/mason.nvim',
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'seblj/roslyn.nvim',
|
||||
'neovim/nvim-lspconfig',
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons', lazy = true }
|
||||
},
|
||||
|
||||
{
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
dependencies = {
|
||||
{ 'hrsh7th/nvim-cmp' },
|
||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||
{ 'L3MON4D3/LuaSnip' },
|
||||
}
|
||||
},
|
||||
{
|
||||
'MoaidHathot/dotnet.nvim',
|
||||
config = function()
|
||||
require("dotnet").setup({})
|
||||
end
|
||||
},
|
||||
-- add your plugins here
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "everforest" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
Reference in New Issue
Block a user