-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(code-runner): add compiler.nvim (#298)
* feat(compiler.nvim) * Update compiler-nvim.lua * simplify implementation --------- Co-authored-by: Micah Halter <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
lua/astrocommunity/code-runner/compiler-nvim/compiler-nvim.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }, | ||
config = function(_, opts) require("compiler").setup(opts) end, | ||
} |