Skip to content

Commit

Permalink
feat(code-runner): added the toggletasks.nvim plugin (#965)
Browse files Browse the repository at this point in the history
* feat(code-runner): added the toggletasks.nvim plugin

* Apply best practices to configuration

Co-authored-by: Micah Halter <[email protected]>

* Enable lazy loading

Co-authored-by: Micah Halter <[email protected]>

---------

Co-authored-by: Maarten van Beek <myemail>
Co-authored-by: Micah Halter <[email protected]>
  • Loading branch information
vbmaarten and mehalter authored May 15, 2024
1 parent 22a9151 commit 665bf35
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/code-runner/toggletasks-nvim/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# toggletasks.nvim

Neovim task runner: JSON/YAML + toggleterm.nvim + telescope.nvim.

**Repository:** <https://github.com/jedrzejboczar/toggletasks.nvim>
25 changes: 25 additions & 0 deletions lua/astrocommunity/code-runner/toggletasks-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
return {
"jedrzejboczar/toggletasks.nvim",
lazy = true,
dependencies = {
{ "nvim-lua/plenary.nvim" },
{ "akinsho/toggleterm.nvim" },
{ "nvim-telescope/telescope.nvim" },
{
"AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>tss"] = { "<Cmd>Telescope toggletasks spawn<CR>", desc = "toggletasks: spawn" },
["<Leader>tsc"] = { "<Cmd>Telescope toggletasks select<CR>", desc = "toggletasks: select" },
["<Leader>tse"] = { "<Cmd>Telescope toggletasks edit<CR>", desc = "toggletasks: edit config" },
},
},
},
},
},
opts = {},
init = function()
require("astrocore").on_load("telescope.nvim", function() require("telescope").load_extension "toggletasks" end)
end,
}

0 comments on commit 665bf35

Please sign in to comment.