nvim: change from packer to lazy
This commit is contained in:
parent
818b029c29
commit
a98ff5b0d3
|
|
@ -1,5 +1,5 @@
|
|||
require('plugins')
|
||||
require('mappings')
|
||||
require('plugins')
|
||||
|
||||
vim.o.termguicolors = true
|
||||
vim.o.number = true
|
||||
|
|
|
|||
|
|
@ -1,43 +1,52 @@
|
|||
vim.cmd [[packadd packer.nvim]]
|
||||
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)
|
||||
|
||||
return require('packer').startup(function(use)
|
||||
use 'wbthomason/packer.nvim'
|
||||
-- fuzzy finding
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim', branch = '0.1.x',
|
||||
requires = {
|
||||
{'nvim-lua/plenary.nvim'},
|
||||
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }}
|
||||
}
|
||||
use({
|
||||
'overcache/NeoSolarized',
|
||||
config = function()
|
||||
vim.cmd('colorscheme NeoSolarized')
|
||||
end
|
||||
})
|
||||
use ('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
|
||||
use 'tpope/vim-fugitive'
|
||||
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'hrsh7th/nvim-cmp' -- Autocompletion plugin
|
||||
use 'hrsh7th/cmp-nvim-lsp' -- LSP source for nvim-cmp
|
||||
use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp
|
||||
use 'L3MON4D3/LuaSnip' -- Snippets plugin
|
||||
use 'lukas-reineke/indent-blankline.nvim'
|
||||
require("lazy").setup({
|
||||
'wbthomason/packer.nvim',
|
||||
-- fuzzy finding
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
},
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
|
||||
{
|
||||
'overcache/NeoSolarized',
|
||||
config = function()
|
||||
vim.cmd('colorscheme NeoSolarized')
|
||||
end
|
||||
}
|
||||
{'nvim-treesitter/nvim-treesitter', build = ':TSUpdate'},
|
||||
'tpope/vim-fugitive',
|
||||
|
||||
use 'lewis6991/gitsigns.nvim'
|
||||
use 'github/copilot.vim'
|
||||
'neovim/nvim-lspconfig',
|
||||
'hrsh7th/nvim-cmp', -- Autocompletion plugin
|
||||
'hrsh7th/cmp-nvim-lsp', -- LSP source for nvim-cmp
|
||||
'saadparwaiz1/cmp_luasnip', -- Snippets source for nvim-cmp
|
||||
'L3MON4D3/LuaSnip', -- Snippets plugin
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
|
||||
use({
|
||||
"jackMort/ChatGPT.nvim",
|
||||
config = function()
|
||||
require("chatgpt").setup()
|
||||
end,
|
||||
requires = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-telescope/telescope.nvim"
|
||||
}
|
||||
})
|
||||
|
||||
end)
|
||||
'lewis6991/gitsigns.nvim',
|
||||
'github/copilot.vim',
|
||||
{ "jackMort/ChatGPT.nvim",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("chatgpt").setup()
|
||||
end,
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-telescope/telescope.nvim"
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue