-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.lua
321 lines (281 loc) · 9.09 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
-- vim: set fenc=utf-8 ts=2 sw=0 sts=0 sr et si tw=0 fdm=marker fmr={{{,}}}:
if not lightweightMode then
-- {{{ Bootstrap lazy.nvim
local install_path = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(install_path) then
fn.system({ 'git', 'clone', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', install_path, })
end
vim.opt.rtp:prepend(install_path)
-- }}}
require('plugin_conf.neovide') -- load Neovide config
-- {{{ Plugins
require('lazy').setup(
{
{
'nvim-lualine/lualine.nvim', -- Statusline
lazy = false,
dependencies = { 'kyazdani42/nvim-web-devicons' },
config = function() require('plugin_conf.lualine') end
},
{
'romgrk/barbar.nvim', -- Tab bar
lazy = false,
dependencies =
{
'lewis6991/gitsigns.nvim',
'nvim-tree/nvim-web-devicons',
},
config = function() require('plugin_conf.barbar') end
},
{
'nvim-tree/nvim-tree.lua', -- File tree
lazy = false,
dependencies =
{
{
'antosha417/nvim-lsp-file-operations',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function() require('lsp-file-operations').setup() end
},
'nvim-tree/nvim-web-devicons',
'JMarkin/nvim-tree.lua-float-preview'
},
config = function() require('plugin_conf.nvim-tree') end
},
{
'akinsho/toggleterm.nvim', -- Terminal
lazy = false,
config = function() require('plugin_conf.toggleterm') end
},
{
"Zeioth/compiler.nvim",
lazy = true,
cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" },
dependencies =
{
{
"stevearc/overseer.nvim",
commit = "68a2d344cea4a2e11acfb5690dc8ecd1a1ec0ce0",
cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" },
opts =
{
task_list =
{
direction = "bottom",
min_height = opt.lines:get() * .2,
max_height = opt.lines:get() * .2,
default_detail = 1
},
},
}
},
opts = {}
},
{
'petertriho/nvim-scrollbar', -- Scrollbar
lazy = false,
config = function() require('plugin_conf.scrollbar') end
},
{
'yamatsum/nvim-cursorline', -- Underline similar stuff
lazy = false,
config = function() require('plugin_conf.cursorline') end
},
{
'windwp/nvim-autopairs', -- Bracket matching/pairing
lazy = false,
config = function() require('plugin_conf.autopairs') end
},
{
'numToStr/Comment.nvim', -- Commands to comment text
lazy = false,
config = function() require('plugin_conf.comment') end
},
{
'lukas-reineke/indent-blankline.nvim', -- Indent lines
lazy = false,
config = function() require('plugin_conf.indent_blankline') end
},
{
'norcalli/nvim-colorizer.lua', -- Render colors present in text
lazy = false,
config = function() require('plugin_conf.colorizer') end
},
{
'goolord/alpha-nvim', -- Start screen
lazy = false,
dependencies = { 'kyazdani42/nvim-web-devicons' },
config = function() require('plugin_conf.alpha') end
},
{
'andweeb/presence.nvim', -- Discord Rich Presence
lazy = false,
config = function() require('plugin_conf.presence') end
},
{
'booperlv/nvim-gomove', -- Move selection in file
lazy = false,
config = function() require('plugin_conf.gomove') end
},
{
'folke/which-key.nvim', -- Keybind tooltips
lazy = false,
},
{
'lewis6991/gitsigns.nvim', -- Git signs
lazy = false,
config = function() require('plugin_conf.gitsigns') end
},
{
'lervag/vimtex', -- LaTeX support
lazy = false,
config = function() require('plugin_conf.vimtex') end
},
{
'iamcco/markdown-preview.nvim', -- Preview markdown files
lazy = true,
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = 'cd app && yarn install',
init = function() g.mkdp_filetypes = { 'markdown' } end,
},
{
'nvim-telescope/telescope.nvim', -- Fuzzy finder
lazy = false,
dependencies = { 'nvim-lua/plenary.nvim' },
config = function() require('plugin_conf.telescope') end
},
{
'rmagatti/session-lens', -- Session searcher
lazy = false,
dependencies =
{
{
'rmagatti/auto-session',
lazy = false,
config = function() require('plugin_conf.auto_session') end
},
'nvim-telescope/telescope.nvim'
},
config = function() require('plugin_conf.session_lens') end
},
{
'nvim-treesitter/nvim-treesitter', -- Better syntax highlighting
lazy = false,
build = ':TSUpdate',
config = function() require('plugin_conf.treesitter') end
},
{
'folke/trouble.nvim', -- Code diagnostic tools
lazy = true,
cmd = "Trouble",
config = function() require('plugin_conf.trouble-nvim') end
},
{
"j-hui/fidget.nvim",
},
{
'nvimdev/lspsaga.nvim', -- LSP extras
lazy = true,
event = "LspAttach",
dependencies =
{
'nvim-treesitter/nvim-treesitter',
'nvim-tree/nvim-web-devicons',
'lewis6991/gitsigns.nvim',
},
config = function() require('lspsaga').setup() end
},
{
'ray-x/lsp_signature.nvim', -- Function signature
lazy = true,
event = "VeryLazy",
config = function() require('plugin_conf.lsp_signature') end
},
{
"https://git.sr.ht/~whynothugo/lsp_lines.nvim", -- Render LSP diags under problematic line
lazy = true,
event = "LspAttach",
dependencies =
{
'neovim/nvim-lspconfig',
},
config = function() require('lsp_lines').setup() end
},
{
'williamboman/mason.nvim', -- Mason (LSP server provider)
lazy = true,
cmd = { "Mason", "MasonInstall", "MasonInstallAll", "MasonUninstall", "MasonUninstallAll", "MasonLog" },
build = ':MasonUpdate',
dependencies =
{
{
'williamboman/mason-lspconfig.nvim',
dependencies =
{
{
'neovim/nvim-lspconfig', -- LSP server configuration
config = function()
require('plugin_conf.mason')
require('plugin_conf.mason-lspconfig')
require('plugin_conf.lspconfig')
end
},
},
},
},
},
{
'L3MON4D3/LuaSnip', -- Code snippets
lazy = false,
build = "make install_jsregexp",
dependencies =
{
"rafamadriz/friendly-snippets"
},
config = function() require('plugin_conf.luasnip') end
},
{
'hrsh7th/nvim-cmp',
lazy = false,
dependencies =
{
'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip',
'micangl/cmp-vimtex',
'hrsh7th/cmp-path',
'hrsh7th/cmp-calc',
'kdheepak/cmp-latex-symbols',
'hrsh7th/cmp-emoji',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-cmdline',
"onsails/lspkind.nvim",
'windwp/nvim-autopairs',
},
config = function() require('plugin_conf.cmp') end
},
'ethanholz/nvim-lastplace', -- Remember last place in file
'andymass/vim-matchup', -- Better '%' key behavior
'rainbowhxch/accelerated-jk.nvim', -- Repeat jk movements
'mrjones2014/smart-splits.nvim', -- Better split resize
'sindrets/winshift.nvim', -- Better split move
'tpope/vim-surround', -- Surround text in parentheses
'dhruvasagar/vim-table-mode', -- Vim table mode
'gpanders/nvim-parinfer', -- Better S-expressions writing
{
'catppuccin/nvim', -- Catppuccin
lazy = false,
priority = 1000,
name = 'catppuccin',
config = function()
require('plugin_conf.catppuccin')
cmd([[colorscheme catppuccin]])
end
},
{
'eandrju/cellular-automaton.nvim'
},
})
-- }}}
end