@@ -1,7 +1,27 @@
|
|||||||
vim.cmd [[packadd packer.nvim]]
|
local ensure_packer = function()
|
||||||
|
local fn = vim.fn
|
||||||
|
local install_path = fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
|
||||||
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
|
fn.system({ "git", "clone", "--depth", "1", "https://github.com/wbthomason/packer.nvim", install_path })
|
||||||
|
vim.cmd([[packadd packer.nvim]])
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
local packer_bootstrap = ensure_packer() -- true if packer was just installed
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
-- vim.cmd [[packadd packer.nvim]]
|
||||||
|
|
||||||
|
-- import packer safely
|
||||||
|
local status, packer = pcall(require, "packer")
|
||||||
|
if not status then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
return packer.startup(function(use)
|
||||||
|
--Packer
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
--Themes
|
||||||
use({
|
use({
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
as = "catppuccin",
|
as = "catppuccin",
|
||||||
@@ -9,6 +29,7 @@ return require('packer').startup(function(use)
|
|||||||
vim.cmd [[colorscheme catppuccin-mocha]]
|
vim.cmd [[colorscheme catppuccin-mocha]]
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
-- telescope
|
||||||
use {
|
use {
|
||||||
'nvim-telescope/telescope.nvim', tag = '0.1.1',
|
'nvim-telescope/telescope.nvim', tag = '0.1.1',
|
||||||
requires = { { 'nvim-lua/plenary.nvim' } }
|
requires = { { 'nvim-lua/plenary.nvim' } }
|
||||||
@@ -21,6 +42,7 @@ return require('packer').startup(function(use)
|
|||||||
"nvim-telescope/telescope-project.nvim",
|
"nvim-telescope/telescope-project.nvim",
|
||||||
requires = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }
|
requires = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" }
|
||||||
}
|
}
|
||||||
|
-- development
|
||||||
use 'github/copilot.vim'
|
use 'github/copilot.vim'
|
||||||
use {
|
use {
|
||||||
'nvim-tree/nvim-tree.lua',
|
'nvim-tree/nvim-tree.lua',
|
||||||
@@ -49,6 +71,31 @@ return require('packer').startup(function(use)
|
|||||||
{ 'L3MON4D3/LuaSnip' },
|
{ 'L3MON4D3/LuaSnip' },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
use("hrsh7th/cmp-buffer")
|
||||||
|
use("hrsh7th/cmp-path")
|
||||||
|
use("saadparwaiz1/cmp_luasnip")
|
||||||
|
use("rafamadriz/friendly-snippets")
|
||||||
|
use("jose-elias-alvarez/null-ls.nvim")
|
||||||
|
use("jayp0521/mason-null-ls.nvim")
|
||||||
|
use("onsails/lspkind.nvim")
|
||||||
|
use {
|
||||||
|
"folke/trouble.nvim",
|
||||||
|
requires = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
}
|
||||||
|
use({
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
run = function() vim.fn["mkdp#util#install"]() end,
|
||||||
|
})
|
||||||
|
use {
|
||||||
|
'numToStr/Comment.nvim',
|
||||||
|
config = function()
|
||||||
|
end
|
||||||
|
}
|
||||||
|
use { 'TimUntersberger/neogit', requires = 'nvim-lua/plenary.nvim',}
|
||||||
|
use 'sindrets/diffview.nvim'
|
||||||
|
use("windwp/nvim-autopairs")
|
||||||
|
use({ "windwp/nvim-ts-autotag", after = "nvim-treesitter" })
|
||||||
|
-- useful plugins
|
||||||
use {
|
use {
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
@@ -72,21 +119,9 @@ return require('packer').startup(function(use)
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
use {
|
|
||||||
"folke/trouble.nvim",
|
|
||||||
requires = { "nvim-tree/nvim-web-devicons" },
|
|
||||||
}
|
|
||||||
use({
|
|
||||||
"iamcco/markdown-preview.nvim",
|
|
||||||
run = function() vim.fn["mkdp#util#install"]() end,
|
|
||||||
})
|
|
||||||
use 'ObserverOfTime/nvimcord'
|
use 'ObserverOfTime/nvimcord'
|
||||||
use {
|
-- packer autosync
|
||||||
'numToStr/Comment.nvim',
|
if packer_bootstrap then
|
||||||
config = function()
|
require("packer").sync()
|
||||||
end
|
end
|
||||||
}
|
|
||||||
use { 'TimUntersberger/neogit', requires = 'nvim-lua/plenary.nvim',}
|
|
||||||
use 'sindrets/diffview.nvim'
|
|
||||||
use 'm4xshen/autoclose.nvim'
|
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user