1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
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
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
end
return require('packer').startup({function(use)
-- Setup Packer
use {"wbthomason/packer.nvim"}
-- Nvim tree
use {
"nvim-tree/nvim-tree.lua",
requires = {
"nvim-tree/nvim-web-devicons",
},
}
-- LSP
use {
"williamboman/mason.nvim",
}
use {
"williamboman/mason-lspconfig.nvim",
}
use {
"neovim/nvim-lspconfig",
}
-- Gruvbox theme
use {
"ellisonleao/gruvbox.nvim",
}
-- Lualine
use {
'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons', opt = true },
}
-- Treesitter
use {
'nvim-treesitter/nvim-treesitter',
run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,
}
-- Colorizer
use {
'norcalli/nvim-colorizer.lua',
}
-- Tag Viewer
use 'preservim/tagbar'
-- Alpha
use {
'goolord/alpha-nvim',
requires = { 'BlakeJC94/alpha-nvim-fortune', opt = true },
}
-- Completion
use {
'hrsh7th/nvim-cmp',
}
use 'hrsh7th/cmp-nvim-lsp'
use 'L3MON4D3/LuaSnip' -- Snippets plugin
-- cmp sources --
use "hrsh7th/cmp-nvim-lua"
use "hrsh7th/cmp-buffer"
use "hrsh7th/cmp-path"
use "hrsh7th/cmp-cmdline"
-- Telescope
use {
"nvim-telescope/telescope.nvim",
requires = {
"nvim-lua/plenary.nvim",
},
}
-- Indent-blankline
use {
"lukas-reineke/indent-blankline.nvim",
}
-- Undotree
use {
"jiaoshijie/undotree",
requires = {
"nvim-lua/plenary.nvim",
},
}
-- Comment
use {
'numToStr/Comment.nvim',
}
-- lsp_lines
use {
"https://git.sr.ht/~whynothugo/lsp_lines.nvim",
}
-- Comment
use {
'famiu/bufdelete.nvim',
}
-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
end,
config = {
display = {
open_fn = function()
return require('packer.util').float({ border = 'single' })
end,
},
}
})
|