Skip to content

Commit

Permalink
feat(code-runner): add compiler.nvim (#298)
Browse files Browse the repository at this point in the history
* feat(compiler.nvim)

* Update compiler-nvim.lua

* simplify implementation

---------

Co-authored-by: Micah Halter <micah@mehalter.com>
  • Loading branch information
Zeioth and mehalter committed Jun 22, 2023
1 parent 40419cb commit 9324921
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/code-runner/compiler-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# compiler.nvim

**Repository:** https://github.com/Zeioth/Compiler.nvim

A Neovim compiler for building and running your code without having to configure anything
22 changes: 22 additions & 0 deletions lua/astrocommunity/code-runner/compiler-nvim/compiler-nvim.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 = {},
}

0 comments on commit 9324921

Please sign in to comment.