forked from 2nthony/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.lua
146 lines (136 loc) · 3.27 KB
/
plugins.lua
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
-- Automatically install packer
local install_path = vim.fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = vim.fn.system {
"git",
"clone",
"--depth",
"1",
"https://github.com/wbthomason/packer.nvim",
install_path,
}
print "Installing packer close and reopen Neovim..."
vim.cmd [[packadd packer.nvim]]
end
local status_packer_ok, packer = pcall(require, "packer")
if not status_packer_ok then
return
end
return packer.startup(function()
-- core
use "wbthomason/packer.nvim" -- Have packer manage itself
-- basic
use 'tpope/vim-surround'
use 'hoob3rt/lualine.nvim'
use 'nvim-lua/plenary.nvim'
use 'romgrk/barbar.nvim'
use 'mbbill/undotree'
use 'windwp/nvim-autopairs'
use 'windwp/nvim-spectre' -- global character search
use 'kyazdani42/nvim-web-devicons'
use 'kyazdani42/nvim-tree.lua' -- file explorer
-- lsp
use 'neovim/nvim-lspconfig'
use 'williamboman/mason.nvim'
use {
'williamboman/mason-lspconfig.nvim', -- formerly lsp installer
requires = {
'williamboman/mason.nvim',
'neovim/nvim-lspconfig'
}
}
use 'hrsh7th/nvim-cmp'
use {
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-cmdline',
'hrsh7th/cmp-path',
requires = {
"hrsh7th/nvim-cmp",
}
}
use 'onsails/lspkind-nvim'
use 'glepnir/lspsaga.nvim'
use 'folke/lsp-colors.nvim'
use 'L3MON4D3/LuaSnip'
use {
'saadparwaiz1/cmp_luasnip',
requires = {'L3MON4D3/LuaSnip'}
}
use {
'rafamadriz/friendly-snippets',
requires = {'L3MON4D3/LuaSnip', 'saadparwaiz1/cmp_luasnip'}
}
use 'folke/trouble.nvim'
use 'simrat39/rust-tools.nvim'
use {
"zbirenbaum/copilot-cmp",
module = "copilot_cmp",
requires = {
"github/copilot.vim",
"zbirenbaum/copilot.lua",
'tjdevries/colorbuddy.nvim',
}
}
-- telescope
use {
'nvim-telescope/telescope.nvim',
requires = {
'nvim-lua/plenary.nvim'
}
}
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make'}
use {
'tom-anders/telescope-vim-bookmarks.nvim',
requires = {
'MattesGroeger/vim-bookmarks'
}
}
-- treesitter
use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'}
use 'windwp/nvim-ts-autotag'
use {
'JoosepAlviste/nvim-ts-context-commentstring',
requires = {
'tpope/vim-commentary'
}
}
use {
'folke/todo-comments.nvim',
requires = {
'nvim-lua/plenary.nvim'
}
}
-- git
use {
'lewis6991/gitsigns.nvim',
requires = {
'nvim-lua/plenary.nvim'
}
}
use 'sindrets/diffview.nvim'
-- theme
use 'folke/tokyonight.nvim'
use {
'svrana/neosolarized.nvim',
requires = {
'tjdevries/colorbuddy.nvim'
}
}
-- highlight
use 'norcalli/nvim-colorizer.lua' -- highlight HEX color
-- others
use {
"iamcco/markdown-preview.nvim",
run = function() vim.fn["mkdp#util#install"]() end,
}
use 'sbdchd/neoformat' -- format file on save
use {'akinsho/toggleterm.nvim', tag = 'v2.1.0'}
use 'phaazon/hop.nvim' -- goto a word or line
use 'rmagatti/auto-session' -- restore session
use {
'rhysd/accelerated-jk',
commit = '156c5158b72059404f6b8aaf15b59f87dd0aaa88'
}
use 'wakatime/vim-wakatime'
end)