diff --git a/lua/astrocommunity/code-runner/toggletasks-nvim/README.md b/lua/astrocommunity/code-runner/toggletasks-nvim/README.md new file mode 100644 index 000000000..801cb5b60 --- /dev/null +++ b/lua/astrocommunity/code-runner/toggletasks-nvim/README.md @@ -0,0 +1,5 @@ +# toggletasks.nvim + +Neovim task runner: JSON/YAML + toggleterm.nvim + telescope.nvim. + +**Repository:** diff --git a/lua/astrocommunity/code-runner/toggletasks-nvim/init.lua b/lua/astrocommunity/code-runner/toggletasks-nvim/init.lua new file mode 100644 index 000000000..67610edd7 --- /dev/null +++ b/lua/astrocommunity/code-runner/toggletasks-nvim/init.lua @@ -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 = { + ["tss"] = { "Telescope toggletasks spawn", desc = "toggletasks: spawn" }, + ["tsc"] = { "Telescope toggletasks select", desc = "toggletasks: select" }, + ["tse"] = { "Telescope toggletasks edit", desc = "toggletasks: edit config" }, + }, + }, + }, + }, + }, + opts = {}, + init = function() + require("astrocore").on_load("telescope.nvim", function() require("telescope").load_extension "toggletasks" end) + end, +}