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
|
local PKGS = {
-- Plugin manager
{ url = "https://github.com/savq/paq-nvim.git" };
-- Common
{ url = "https://github.com/kyazdani42/nvim-web-devicons.git" };
{ url = "https://github.com/ojroques/nvim-osc52.git" };
{ url = "https://github.com/chentoast/marks.nvim.git" };
{ url = "https://github.com/kyazdani42/nvim-tree.lua.git" };
{ url = "https://github.com/nvim-telescope/telescope.nvim.git" };
{ url = "https://github.com/nvim-lua/plenary.nvim.git" };
{ url = "https://github.com/kevinhwang91/nvim-ufo.git" };
{ url = "https://github.com/kevinhwang91/promise-async.git" };
{ url = "https://github.com/iamcco/markdown-preview.nvim.git" };
{ url = "https://github.com/folke/which-key.nvim.git" };
{ url = "https://github.com/tpope/vim-abolish.git" };
{ url = "https://github.com/mg979/vim-visual-multi.git" };
{ url = "https://github.com/echasnovski/mini.nvim.git" };
{ url = "https://github.com/catppuccin/nvim.git" };
-- Status line
{ url = "https://github.com/akinsho/bufferline.nvim.git" };
{ url = "https://github.com/nvim-lualine/lualine.nvim.git" };
-- Code colors
{ url = "https://github.com/lukas-reineke/indent-blankline.nvim.git" };
{ url = "https://github.com/nvim-treesitter/nvim-treesitter.git" };
{ url = "https://github.com/norcalli/nvim-colorizer.lua.git" };
{ url = "https://github.com/mracos/mermaid.vim.git" };
-- Themes
{ url = "https://github.com/dracula/vim.git" };
{ url = "https://github.com/folke/tokyonight.nvim.git" };
{ url = "https://github.com/Mofiqul/vscode.nvim.git" };
{ url = "https://github.com/sainnhe/sonokai.git" };
{ url = "https://github.com/navarasu/onedark.nvim.git" };
{ url = "https://github.com/Mofiqul/adwaita.nvim.git" };
{ url = "https://github.com/projekt0n/github-nvim-theme.git" };
-- LCOV Coverage
{ url = "https://github.com/google/vim-coverage.git" };
{ url = "https://github.com/google/vim-maktaba.git" };
{ url = "https://github.com/editorconfig/editorconfig-vim.git" };
{ url = "https://github.com/nathom/filetype.nvim.git" };
{ url = "https://github.com/wfxr/minimap.vim.git" };
{ url = "https://github.com/preservim/nerdcommenter.git" };
-- LSP
{ url = "https://github.com/neovim/nvim-lspconfig.git" };
{ url = "https://github.com/hrsh7th/nvim-cmp.git" };
{ url = "https://github.com/hrsh7th/cmp-nvim-lsp.git" };
{ url = "https://github.com/hrsh7th/cmp-buffer.git" };
{ url = "https://github.com/hrsh7th/cmp-path.git" };
{ url = "https://github.com/hrsh7th/cmp-cmdline.git" };
{ url = "https://github.com/hrsh7th/cmp-vsnip.git" };
{ url = "https://github.com/hrsh7th/vim-vsnip.git" };
{ url = "https://github.com/onsails/lspkind.nvim.git" };
{ url = "https://github.com/folke/trouble.nvim.git" };
{ url = "https://github.com/folke/lsp-colors.nvim.git" };
{ url = "https://github.com/nanotee/sqls.nvim.git" };
{ url = "https://github.com/lvimuser/lsp-inlayhints.nvim.git" };
{ url = "https://github.com/sigmaSd/deno-nvim.git" };
{ url = "https://github.com/ray-x/lsp_signature.nvim.git" };
{ url = "https://github.com/Hoffs/omnisharp-extended-lsp.nvim.git" };
{ url = "https://github.com/lewis6991/gitsigns.nvim.git" };
{ url = "https://github.com/jose-elias-alvarez/null-ls.nvim.git" };
{ url = "https://github.com/mfussenegger/nvim-dap.git" };
{ url = "https://github.com/rcarriga/nvim-dap-ui.git" };
-- Dev container
{ url = "https://codeberg.org/esensar/nvim-dev-container.git" };
-- Games
{ url = "https://github.com/alec-gibson/nvim-tetris.git" };
{ url = "https://github.com/seandewar/nvimesweeper.git" };
}
local function clone_paq()
local path = vim.fn.stdpath("data") .. "/site/pack/paqs/start/paq-nvim"
if vim.fn.empty(vim.fn.glob(path)) > 0 then
vim.fn.system {
"git";
"clone";
"--depth=1";
"https://github.com/savq/paq-nvim.git";
path;
}
return true
else
return false
end
end
local function bootstrap_paq()
clone_paq()
-- Load Paq
vim.cmd("packadd paq-nvim")
local paq = require("paq")
-- Read and install packages
paq(PKGS)
paq.install()
end
local function init_plugins()
local paq = require("paq")
paq(PKGS)
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07B gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent4 guifg=#56B6C2 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
require("indent_blankline").setup {
char_highlight_list = {
"IndentBlanklineIndent1";
"IndentBlanklineIndent2";
"IndentBlanklineIndent3";
"IndentBlanklineIndent4";
"IndentBlanklineIndent5";
"IndentBlanklineIndent6";
};
show_end_of_line = true;
space_char_blankline = " ";
show_current_context = true;
show_current_context_start = true;
}
require("colorizer").setup({ "*" }, {
RGB = true; -- #RGB hex codes
RRGGBB = true; -- #RRGGBB hex codes
names = true; -- "Name" codes like Blue
RRGGBBAA = false; -- #RRGGBBAA hex codes
rgb_fn = false; -- CSS rgb() and rgba() functions
hsl_fn = false; -- CSS hsl() and hsla() functions
css = false; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = false; -- Enable all CSS *functions*: rgb_fn, hsl_fn
-- Available modes: foreground, background
mode = "foreground"; -- Set the display mode.
})
vim.g.minimap_auto_start = 0
vim.g.minimap_highlight_range = 1
vim.g.minimap_highlight_search = 1
require("ufo").setup({
provider_selector = function(bufnr, filetype, buftype)
return { "treesitter"; "indent" }
end;
});
require("catppuccin").setup({
transparent_background = true;
show_end_of_line = true;
term_colors = true;
})
vim.o.foldcolumn = "1"
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99
vim.o.foldenable = true
require("osc52").setup {
max_length = 0; -- Maximum length of selection (0 for no limit)
silent = false; -- Disable message on successful copy
trim = false; -- Trim surrounding whitespaces before copy
}
require("devcontainer").setup({})
require("which-key").setup({})
require("nvim-treesitter.configs").setup({
ensure_installed = { "javascript"; "typescript"; "lua"; "c_sharp"; "jsonc" };
sync_install = false;
auto_install = true;
highlight = { enable = true; disable = { "markdown"; "yaml"; "sql"; "help" } };
})
require("mini.surround").setup({})
require("gitsigns").setup {
signs = {
add = {
hl = "GitSignsAdd";
text = "│";
numhl = "GitSignsAddNr";
linehl = "GitSignsAddLn";
};
change = {
hl = "GitSignsChange";
text = "│";
numhl = "GitSignsChangeNr";
linehl = "GitSignsChangeLn";
};
delete = {
hl = "GitSignsDelete";
text = "_";
numhl = "GitSignsDeleteNr";
linehl = "GitSignsDeleteLn";
};
topdelete = {
hl = "GitSignsDelete";
text = "‾";
numhl = "GitSignsDeleteNr";
linehl = "GitSignsDeleteLn";
};
changedelete = {
hl = "GitSignsChange";
text = "~";
numhl = "GitSignsChangeNr";
linehl = "GitSignsChangeLn";
};
untracked = {
hl = "GitSignsAdd";
text = "┆";
numhl = "GitSignsAddNr";
linehl = "GitSignsAddLn";
};
};
signcolumn = true; -- Toggle with `:Gitsigns toggle_signs`
numhl = true; -- Toggle with `:Gitsigns toggle_numhl`
linehl = false; -- Toggle with `:Gitsigns toggle_linehl`
word_diff = false; -- Toggle with `:Gitsigns toggle_word_diff`
watch_gitdir = { interval = 1000; follow_files = true };
attach_to_untracked = true;
current_line_blame = true; -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = {
virt_text = true;
virt_text_pos = "eol"; -- 'eol' | 'overlay' | 'right_align'
delay = 0;
ignore_whitespace = false;
};
current_line_blame_formatter = "<author>, <author_time:%Y-%m-%d> - <summary>";
sign_priority = 6;
update_debounce = 100;
status_formatter = nil; -- Use default
max_file_length = 40000; -- Disable if file is longer than this (in lines)
preview_config = {
-- Options passed to nvim_open_win
border = "single";
style = "minimal";
relative = "cursor";
row = 0;
col = 1;
};
yadm = { enable = false };
}
require("marks").setup({
-- whether to map keybinds or not. default true
default_mappings = false;
-- which builtin marks to show. default {}
builtin_marks = { "."; "<"; ">"; "^" };
-- whether movements cycle back to the beginning/end of buffer. default true
cyclic = true;
-- whether the shada file is updated after modifying uppercase marks. default false
force_write_shada = false;
-- how often (in ms) to redraw signs/recompute mark positions.
-- higher values will have better performance but may cause visual lag,
-- while lower values may cause performance penalties. default 150.
refresh_interval = 250;
-- sign priorities for each type of mark - builtin marks, uppercase marks, lowercase
-- marks, and bookmarks.
-- can be either a table with all/none of the keys, or a single number, in which case
-- the priority applies to all marks.
-- default 10.
sign_priority = { lower = 10; upper = 15; builtin = 8; bookmark = 20 };
-- disables mark tracking for specific filetypes. default {}
excluded_filetypes = {};
-- marks.nvim allows you to configure up to 10 bookmark groups, each with its own
-- sign/virttext. Bookmarks can be used to group together positions and quickly move
-- across multiple buffers. default sign is '!@#$%^&*()' (from 0 to 9), and
-- default virt_text is "".
-- bookmark_0 = {
-- sign = "⚑",
-- virt_text = "hello world",
-- -- explicitly prompt for a virtual line annotation when setting a bookmark from this group.
-- -- defaults to false.
-- annotate = false,
-- },
mappings = {};
})
end
return {
clone_paq = clone_paq;
bootstrap_paq = bootstrap_paq;
init_plugins = init_plugins;
}
|