summaryrefslogtreecommitdiff
path: root/lua/aotrix/plugins/compiler.lua
blob: 72d39f992e3426a1afbdf2f505c01665398b9276 (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
return {
    "Zeioth/compiler.nvim",
    dependencies = {
        {
            "stevearc/overseer.nvim",
            opts = {
                task_list = { -- this refers to the window that shows the result
                    direction = "bottom",
                    min_height = 25,
                    max_height = 25,
                    default_detail = 1,
                    bindings = {
                        -- ["q"] = function()
                        --     vim.cmd("OverseerClose")
                        --     print("Coucou")
                        -- end
                    }
                }
            },
            config = function(_, opts)
                require("overseer").setup(opts)
            end
        }
    },
    cmd = {"CompilerOpen", "CompilerToggleResults"},
    opts = {},
    keys = {
        {"mt", "<cmd>CompilerOpen<cr>", desc = "[M]ake [T]arget"},
        {"mr", "<cmd>CompilerToggleResults<cr>", desc = "[M]ake [R]esults"}
    }
}