-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinit.lua
More file actions
149 lines (125 loc) · 3.3 KB
/
Copy pathinit.lua
File metadata and controls
149 lines (125 loc) · 3.3 KB
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
--[[
____ _ _ _
| __ ) __ _ ___ | |__ __ _ ___ (_) |_
| _ \ / _` |/ _ \| '_ \ / _` |/ _ \| | __|
| |_) | (_| | (_) | |_) | (_| | (_) | | |
|____/ \__,_|\___/|_.__/ \__,_|\___/|_|\__|
--]]
local packer_bootstrap = require('bootstrap').packer_bootstrap
require('packer').startup(function(use)
-- Make sure to add this line to let packer manage itself
use 'wbthomason/packer.nvim'
-- Auto pairs
use {
'windwp/nvim-autopairs',
config = function()
local nvim_autopairs_ok, nvim_autopairs = pcall(require, 'nvim-autopairs')
if not nvim_autopairs_ok then
print('The plugin [nvim-autopairs] not found. Please run :PackerSync!')
return
end
nvim_autopairs.setup {}
end
}
-- Buffer line
use {
'akinsho/bufferline.nvim',
tag = '*',
requires = 'nvim-tree/nvim-web-devicons'
}
-- Comment
use {
'numToStr/Comment.nvim',
config = function()
local Comment_ok, Comment = pcall(require, 'Comment')
if not Comment_ok then
print('The plugin [Comment] not found. Please run :PackerSync!')
return
end
Comment.setup()
end
}
-- Completion
use {
'L3MON4D3/LuaSnip', -- Snippets plugin
'hrsh7th/cmp-nvim-lua', -- Neovim Lua API source for nvim-cmp
'hrsh7th/cmp-nvim-lsp', -- LSP source for nvim-cmp
'hrsh7th/nvim-cmp', -- Autocompletion plugin
'onsails/lspkind-nvim',
'rcarriga/cmp-dap', -- Source for nvim-dap REPL and nvim-dap-ui buffers
'saadparwaiz1/cmp_luasnip', -- Snippets source for nvim-cmp
}
-- File explorer
use {
'nvim-tree/nvim-tree.lua',
requires = {
'nvim-tree/nvim-web-devicons', -- optional, for file icons
}
}
-- Indent
use 'lukas-reineke/indent-blankline.nvim'
-- Java JDT.LS
use 'mfussenegger/nvim-dap'
use 'mfussenegger/nvim-jdtls'
use { "rcarriga/nvim-dap-ui",
requires = {
"mfussenegger/nvim-dap",
"nvim-neotest/nvim-nio"
}
}
use 'theHamsta/nvim-dap-virtual-text'
-- Linter
use 'mfussenegger/nvim-lint'
-- LSP
use {
'neovim/nvim-lspconfig',
'williamboman/mason-lspconfig.nvim',
'williamboman/mason.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim',
}
-- Notify
use 'rcarriga/nvim-notify'
-- Status bar
use 'j-hui/fidget.nvim'
use {
'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons', opt = true }
}
-- use 'windwp/windline.nvim'
-- Startup
use 'lewis6991/impatient.nvim'
-- Syntax highlighting
use {
'nvim-treesitter/nvim-treesitter',
run = function()
require('nvim-treesitter.install').update({ with_sync = true })
end
}
-- Telescope
use {
'nvim-telescope/telescope.nvim', tag = '0.1.4',
-- or , branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} }
}
use { 'nvim-telescope/telescope-ui-select.nvim' }
-- Terminal
use {
'akinsho/toggleterm.nvim',
tag = '*'
}
-- Theme
use 'navarasu/onedark.nvim'
-- Which key
use 'folke/which-key.nvim'
-- Winbar
use {
'SmiteshP/nvim-navic',
requires = 'neovim/nvim-lspconfig'
}
-- Automatically set up your configuration after cloning packer.nvim
if packer_bootstrap then
require('packer').sync()
end
end)
require('general')
require('plugins')