aboutsummaryrefslogtreecommitdiff
path: root/lua/gabrielgio/trouble.lua
blob: f48fec40ad2a5af00c1a4d1091ba77f7a045bc26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local key = require("gabrielgio.key")
local trouble = require("trouble")

trouble.setup{
    modes = {
        test = {
            mode = "diagnostics",
            preview = {
                type = "split",
                relative = "win",
                position = "right",
                size = 0.3,
            },
        },
    },
}

key.nnoremap("<leader>t", ":Trouble test toggle<cr>")