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