diff options
| author | Aotrix <[email protected]> | 2025-02-25 16:30:53 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-02-25 16:30:53 +0100 |
| commit | 5d43db62374c9ca23198f94f3d92367f0796f94d (patch) | |
| tree | 544b8a9b2b48666643abffc3cf8d5954b9fce9c0 /lua/aotrix/plugins/compiler.lua | |
| parent | 18751830d1d73c87c19019d56ddd8014db5a433b (diff) | |
added compiler.nvim
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"} + } +} |
