-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.lua
230 lines (201 loc) · 4.58 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
local overrides = require "custom.configs.overrides"
return {
{
"neovim/nvim-lspconfig",
dependencies = {
"RRethy/vim-illuminate",
"github/copilot.vim",
"p00f/clangd_extensions.nvim",
},
opts = {
inlay_hints = {
enabled = true,
},
},
config = function()
require "plugins.configs.lspconfig"
require "custom.configs.lsp"
end, -- Override to setup mason-lspconfig
},
{
"mfussenegger/nvim-lint",
dependencies = {
"folke/trouble.nvim",
},
event = { "BufReadPre", "BufNewFile" },
config = function()
require "custom.configs.lsp.nvim-lint"
end,
},
{
"stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function()
require "custom.configs.lsp.conform"
end,
},
-- override plugin configs
{
"williamboman/mason.nvim",
opts = overrides.mason,
},
{
"nvim-treesitter/nvim-treesitter",
opts = overrides.treesitter,
},
{
"nvim-tree/nvim-tree.lua",
opts = overrides.nvimtree,
},
{
"nvim-telescope/telescope-fzf-native.nvim",
build = "make",
},
"nvim-telescope/telescope-ui-select.nvim",
{
"nvim-telescope/telescope.nvim",
opts = overrides.telescope,
lazy = false,
},
{
"telescope.nvim",
dependencies = {
"nvim-telescope/telescope-fzf-native.nvim",
"nvim-telescope/telescope-ui-select.nvim",
},
config = function()
require("telescope").setup()
require("telescope").load_extension "fzf"
require("telescope").load_extension "ui-select"
end,
},
{
"lewis6991/gitsigns.nvim",
opts = overrides.gitsigns,
},
{
"hrsh7th/nvim-cmp",
opts = overrides.cmp,
},
-- Additional plugins
-- escape using key combo (currently set to jk)
{
"max397574/better-escape.nvim",
event = "InsertEnter",
config = function()
require "custom.configs.betterescape"
end,
},
{
"rcarriga/nvim-dap-ui",
dependencies = {
"theHamsta/nvim-dap-virtual-text",
},
},
{
"mfussenegger/nvim-dap",
config = function()
require "custom.configs.dap"
end,
},
{
"jay-babu/mason-nvim-dap.nvim",
opts = {
automatic_installation = {
exclude = { "cppdbg" },
},
},
},
-- better bdelete, close buffers without closing windows
{
"ojroques/nvim-bufdel",
lazy = false,
},
{
"nvim-lua/plenary.nvim",
},
{
"vimwiki/vimwiki",
},
{
"leoluz/nvim-dap-go",
ft = "go",
dependencies = "mfussenegger/nvim-dap",
config = function(_, opts)
require("dap-go").setup(opts)
end,
},
{
"folke/noice.nvim",
event = "VeryLazy",
opts = overrides.noice,
config = function()
require("noice").setup {
lsp = {
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
},
},
-- you can enable a preset for easier configuration
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
}
end,
dependencies = {
"MunifTanjim/nui.nvim",
"rcarriga/nvim-notify",
},
},
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
build = function()
vim.fn["mkdp#util#install"]()
end,
ft = { "markdown" },
},
{
"ggandor/leap.nvim",
lazy = false,
config = function()
require("leap").add_default_mappings()
end,
},
{
"tpope/vim-fugitive",
cmd = { "G", "Git" },
},
{
"numToStr/Comment.nvim",
config = function()
require("Comment").setup()
end,
},
{
"RRethy/vim-illuminate",
config = function()
require "illuminate"
end,
},
{
"github/copilot.vim",
config = function()
vim.g.copilot_no_tab_map = true
vim.g.copilot_assume_mapped = true
end,
},
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
virtual_text = true,
opts = {},
},
}