-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugins.lua
86 lines (82 loc) · 2.73 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
-- External plugins managed with packer.nvim
--
-- The plugin configuration is required inline with the plugin declaration,
-- which makes it possible to temporarily disable a plugin by just commenting
-- the declaration.
--- Requires a plugin configuration.
---@param cfg The name of the config to require.
local r = function(cfg)
local module = string.format('dkg.configs.%s', cfg)
require(module)
end
local function plugins()
use { 'wbthomason/packer.nvim' }
use { 'lewis6991/impatient.nvim' }
use { 'neovim/nvim-lspconfig' }
use { 'nvim-treesitter/nvim-treesitter' }
use { 'nvim-treesitter/nvim-treesitter-textobjects' }
use { 'nvim-treesitter/playground', cmd = 'TSPlaygroundToggle' }
use { '~/code/vim/scnvim', config = r'scnvim' }
use { '~/code/vim/nvim-markdown-preview', cmd = 'MarkdownPreview', }
use { 'tpope/vim-commentary' }
use { 'tpope/vim-surround', config = r'surround' }
use { 'tpope/vim-abolish', cmd = 'S' }
use { 'tpope/vim-fugitive', config = r'fugitive' }
use { 'tpope/vim-repeat' }
use { 'tpope/vim-unimpaired', config = r'unimpaired' }
use { 'editorconfig/editorconfig-vim' }
use { 'numToStr/Navigator.nvim', config = r'navigator' }
use { 'justinmk/vim-dirvish' }
use { 'danymat/neogen', requires = 'nvim-treesitter/nvim-treesitter', config = r'neogen' }
use { 'norcalli/nvim-colorizer.lua', cmd = 'ColorizerAttachToBuffer' }
use { 'lewis6991/gitsigns.nvim', requires = 'nvim-lua/plenary.nvim', config = r'gitsigns' }
use { 'bakpakin/fennel.vim' }
use { 'lukas-reineke/indent-blankline.nvim', config = r'indent-blankline' }
use { 'alec-gibson/nvim-tetris', cmd = 'Tetris' }
use { 'jbyuki/venn.nvim', config = r'venn' }
use {
'rebelot/kanagawa.nvim',
config = function()
vim.cmd [[colorscheme kanagawa]]
vim.cmd [[hi! link EndOfBuffer NonText]]
end
}
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
use {'~/code/vim/telescope-scdoc' }
use {
'nvim-telescope/telescope.nvim',
requires = {
'nvim-lua/popup.nvim',
'nvim-lua/plenary.nvim',
},
config = r'telescope'
}
use { 'L3MON4D3/LuaSnip', config = r'luasnip' }
use {
'hrsh7th/nvim-cmp',
requires = {
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-path',
'quangnguyen30192/cmp-nvim-tags',
'saadparwaiz1/cmp_luasnip',
'onsails/lspkind-nvim',
'kyazdani42/nvim-web-devicons'
},
config = r'nvim-cmp'
}
use {
'windwp/nvim-autopairs',
config = function()
require'nvim-autopairs'.setup{}
end
}
end
local packer_config = {
display = {
open_fn = function()
return require'packer.util'.float({ border = 'single' })
end
}
}
require'packer'.startup({plugins, config = packer_config})