aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/plugins/core.lua
blob: 3d70d4fb6dceb634721df280db8b53d693c04af6 (plain)
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
local function setup_with(func_name)
	---@param plugin LazyPlugin
	return function(plugin, opts)
		pcall(require, plugin.main)[func_name](opts)
	end
end

---@type LazySpec[]
local M = {
	"nvim-lua/plenary.nvim",
	{
		"lukas-reineke/virt-column.nvim",
		event = "BufAdd",
		opts = {},
	},
	{
		"akinsho/git-conflict.nvim",
		event = "BufReadPre",
		opts = {
			disable_diagnostics = true,
			default_mappings = {
				prev = "[x",
				next = "]x",
			},
		},
	},
	{
		"NvChad/nvim-colorizer.lua",
		ft = {
			"css",
			"scss",
			"sass",
			"javascript",
			"html",
			"htmldjango",
		},
		opts = {
			filetypes = {
				"css",
				"scss",
				"sass",
				"javascript",
				"html",
				"htmldjango",
			},
			user_default_options = {
				mode = "virtualtext",
			},
		},
	},
	{
		"nvim-treesitter/nvim-treesitter-context",
		event = "BufReadPre",
		dependencies = {
			"nvim-treesitter/nvim-treesitter",
		},
		opts = {},
	},
	{
		"f3fora/nvim-texlabconfig",
		build = "go build -o ~/.local/bin",
		ft = { "tex", "bib" },
		opts = {},
	},
	{
		"mfussenegger/nvim-jdtls",
		ft = "java",
		opts = {
			cmd = { "jdtls" },
		},
		config = setup_with("start_or_attach"),
	},
	{
		"eandrju/cellular-automaton.nvim",
		cmd = "CellularAutomaton",
	},
	{
		"hjson/vim-hjson",
		ft = "hjson",
	},
	{
		"tridactyl/vim-tridactyl",
		ft = "tridactyl",
	},
	{
		"sourcegraph/sg.nvim",
		cmd = {
			"CodyDo",
			"CodyAsk",
			"CodyChat",
			"CodyTask",
			"CodyToggle",
			"CodyRestart",
			"CodyTaskNext",
			"CodyTaskPrev",
			"CodyTaskView",
			"CodyTaskAccept",
			"SourcegraphInfo",
			"SourcegraphLink",
			"SourcegraphBuild",
			"SourcegraphLogin",
			"SourcegraphSearch",
			"SourcegraphDownloadBinaries",
		},
		dependencies = {
			"nvim-lua/plenary.nvim",
			"nvim-telescope/telescope.nvim",
		},
		opts = {},
	},
}

return M