aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/tobyvin/plugins/trouble.lua
blob: 4dd007a107b324be63a473a188484b5edac40942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local utils = require("tobyvin.utils")
local M = {}

M.setup = function()
	local status_ok, trouble = pcall(require, "trouble")
	if not status_ok then
		vim.notify("Failed to load module 'trouble'", "error")
		return
	end

	trouble.setup({
		-- signs = {
		-- 	error = utils.diagnostic_signs.error.text,
		-- 	warning = utils.diagnostic_signs.warn.text,
		-- 	hint = utils.diagnostic_signs.hint.text,
		-- 	information = utils.diagnostic_signs.info.text,
		-- 	other = utils.diagnostic_signs.info.text,
		-- },
		use_diagnostic_signs = true,
	})
end

return M