From 5d43db62374c9ca23198f94f3d92367f0796f94d Mon Sep 17 00:00:00 2001 From: Aotrix Date: Tue, 25 Feb 2025 16:30:53 +0100 Subject: added compiler.nvim --- lua/aotrix/plugins/compiler.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 lua/aotrix/plugins/compiler.lua (limited to 'lua/aotrix/plugins/compiler.lua') 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", "CompilerOpen", desc = "[M]ake [T]arget"}, + {"mr", "CompilerToggleResults", desc = "[M]ake [R]esults"} + } +} -- cgit v1.2.3