diff options
Diffstat (limited to 'lua/aotrix/plugins/compiler.lua')
| -rw-r--r-- | lua/aotrix/plugins/compiler.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lua/aotrix/plugins/compiler.lua b/lua/aotrix/plugins/compiler.lua new file mode 100644 index 0000000..b0c7b45 --- /dev/null +++ b/lua/aotrix/plugins/compiler.lua @@ -0,0 +1,28 @@ +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") + 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"} + } +} |
