Summary Files Commits Branches @commit @diff @stats
path: root / lua / plugins / default.lua
blob: dc595cafe8354ad7af3ed9d69d7eaaf5aa4cde36 (plain) (blame)
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
local _, builtin = pcall(require, 'telescope.builtin')
return {
	--[=[ Visuals ]=]--
	{
		"morhetz/gruvbox", -- Color theme
		lazy = false,
		priority = 1000,
		init = function()
			vim.o.background = "dark"
			vim.g.gruvbox_contrast_dark = "hard"
			vim.opt.termguicolors = false;
		end,
		config = function(_, opts)
			vim.cmd("colorscheme gruvbox")
		end,
	},
	{
		"https://gitlab.com/Syndamia/gruvbox-highlight.nvim",
		dependencies = { "morhetz/gruvbox" },
		lazy = false,
		priority = 1,
		opts = {
			text = false,
			markup = {
				underline = false,
			},
		},
	},

	--[=[ Quality of life ]=]--

	--[==[
	{
		"preservim/nerdtree", -- Browse directories
		dependencies = {
			"ryanoasis/vim-devicons",
		},
		keys = {{ "<Tab>", ":NERDTreeToggle<CR>" }},
		init = function()
			vim.g.NERDTreeShowHidden = 1
			vim.g.NERDTreeWinPos     = "right"
			vim.g.NERDTreeIgnore     = { "\\.swp$", "\\~$" } -- Ignore file, ending with .swp and ~
		end,
	},
	--]==]
	{
		"nvim-tree/nvim-web-devicons", -- NERDFont icons
	},
	{
		"luukvbaal/nnn.nvim",
		keys = {
			{ "<Tab>", ":NnnExplorer<CR>", mode = "n", },
		},
		config = true,
		opts = {
			explorer = {
				cmd = "nnn -dHoJ",
				width = 31;
				side = "botright",
				fullscreen = false,
			},
		},
	},
	{
		"numToStr/Comment.nvim", -- Toggle comments
		opts = {},
	},
	{
		"mbbill/undotree", -- Easily interact with undo history
		keys = {{ "<F5>", ":UndotreeToggle<CR>" }},
		init = function()
			vim.g.undotree_WindowLayout       = 2
			vim.g.undotree_ShortIndicators    = 1 -- e.g. using 'd' instead of 'days' to save some space.
			vim.g.undotree_SetFocusWhenToggle = 1 -- if set, let undotree window get focus after being opened, otherwise focus will stay in current window.
			vim.g.undotree_TreeNodeShape      = '*'
			vim.g.undotree_DiffCommand        = "diff"
		end,
	},
	{
		"godlygeek/tabular", -- Line up text to a given character
	},
	{
		"tpope/vim-eunuch", -- UNIX commands in vim
	},
	{
		"kylechui/nvim-surround", -- Surround text
		version = "*",
		event = "VeryLazy",
		dependencies = {
			"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter-textobjects"
		},
		opts = {},
	},
	{
		"windwp/nvim-ts-autotag", -- Auto-add and edit HTML tags
	},
	{
		"ntpeters/vim-better-whitespace", -- Highlight in red trailing whitespaces
	},
	{
		"https://gitlab.com/Syndamia/dunbar",
	},

	--[=[ Development-specific ]=]--
	{
		"zivyangll/git-blame.vim", -- Show last commit on line
		keys = {{ "<F8>", ":<C-u>call gitblame#echo()<CR>" }},
	},
	{
		"wakatime/vim-wakatime", -- WakaTime tracking
		lazy = false,
	},
	{
		"nvim-neorg/neorg",
		lazy = true,
		ft = "norg",
		version = "8.9.0", -- Last version to support versions <nvim-0.9
		config = true,
		opts = {
			load = {
				["core.defaults"] = {},
				["core.concealer"] = { config = { -- Display markup as icons
					icon_preset = "varied",
				}},
				["core.export"] = {},
				["core.export.markdown"] = {},
				-- ["core.presenter"] = {}, -- Requires zen mode
				-- ["core.text-objects"] = {}, -- Requires >=nvim-0.10
				["core.esupports.metagen"] = {}, -- Autoplace metadata
			},
		},
	},
	{ "noir-lang/noir-nvim", lazy = false },
	{
		"FabianWirth/search.nvim",
		dependencies = { "nvim-telescope/telescope.nvim" },
		config = true,
		opts = {
			tabs = {
				{
					"Selection",
					builtin.grep_string,
				},
				{
					"Grep",
					builtin.live_grep,
				},
				{
					"Files",
					builtin.find_files,
				},
				{
					"Git files",
					builtin.git_files,
					available = function()
						return vim.fn.isdirectory(".git") == 1
					end
				},
				{
					"Commits",
					builtin.git_commits,
					available = function()
						return vim.fn.isdirectory(".git") == 1
					end
				},
			},
		},
	},
	{
		"nvim-telescope/telescope.nvim",
		config = true,
		opts = {
			layout_strategy = 'horizontal',
			defaults = {
				layout_config = {
					prompt_position = 'top',
				}
			},
		},
	},
}