-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.lua
75 lines (54 loc) · 1.76 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
local execute = vim.api.nvim_command
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', 'https://github.com/wbthomason/packer.nvim', install_path})
execute 'packadd packer.nvim'
end
vim.cmd([[packadd packer.nvim]])
vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua
return require('packer').startup(function(use)
-- Packer can manage itself as an optional plugin
use {'wbthomason/packer.nvim', opt = true}
use {'nvim-treesitter/nvim-treesitter'}
-- Color scheme
use { 'sainnhe/gruvbox-material' }
use {'sheerun/vim-polyglot'}
-- Fuzzy finder
use {
'nvim-telescope/telescope.nvim',
cmd ={'Telescope'},
config = function() require("config.telescope") end,
requires = {'nvim-lua/popup.nvim', 'nvim-lua/plenary.nvim'}
}
use {
'nvim-telescope/telescope-fzy-native.nvim',
after = 'telescope.nvim'
}
-- LSP and completion
use { 'neovim/nvim-lspconfig' }
use { 'nvim-lua/completion-nvim' }
-- Lua development
use { 'tjdevries/nlua.nvim' }
-- GIT
use { 'tpope/vim-fugitive' }
use { 'rhysd/git-messenger' }
-- Snippets
use { 'honza/vim-snippets' }
use { 'SirVer/ultisnips' }
use { 'glepnir/dashboard-nvim' }
use {'kyazdani42/nvim-web-devicons'}
use {'kyazdani42/nvim-tree.lua'}
use {'b3nj5m1n/kommentary'}
-- Smooth Scrolling
use({
"karb94/neoscroll.nvim",
keys = { "<C-u>", "<C-d>", "C-b", "gg", "G" },
config = [[require('config.scroll')]]
})
use({ "tweekmonster/startuptime.vim", cmd = "StartupTime" })
use({
"andymass/vim-matchup",
event = "CursorMoved",
})
end)