moved to lazy

This commit is contained in:
radumacocian
2024-08-19 01:08:01 +02:00
parent e6bbcadbd1
commit 99d35a019a
17 changed files with 108 additions and 281 deletions

View File

@@ -1,2 +1,3 @@
require("wicked.remap")
require("wicked.set")
require("wicked.lazy")

View 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 },
})

View File

@@ -1,55 +0,0 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use {
'nvim-telescope/telescope.nvim', tag = '0.1.8',
-- or , branch = '0.1.x',
requires = { { 'nvim-lua/plenary.nvim' } }
}
use({
'neanias/everforest-nvim',
config = function()
vim.cmd('colorscheme everforest')
end
})
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use('nvim-treesitter/playground')
use('theprimeagen/harpoon')
use('mbbill/undotree')
use('tpope/vim-fugitive')
use('idanarye/vim-merginal')
use('williamboman/mason.nvim')
use('williamboman/mason-lspconfig.nvim')
use('seblj/roslyn.nvim')
use('neovim/nvim-lspconfig')
use {
'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
}
use {
'VonHeikemen/lsp-zero.nvim',
branch = 'v3.x',
requires = {
--- Uncomment the two plugins below if you want to manage the language servers from neovim
{ 'hrsh7th/nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'L3MON4D3/LuaSnip' },
}
}
use {
'MoaidHathot/dotnet.nvim',
config = function()
require("dotnet").setup({})
end
}
end)