Skip to content

Commit

Permalink
Apply best practices to configuration
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Halter <[email protected]>
  • Loading branch information
2 people authored and Maarten van Beek committed May 15, 2024
1 parent b6f2383 commit 5a1ad9b
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions lua/astrocommunity/code-runner/toggletasks-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,21 @@ return {
{ "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("telescope").load_extension "toggletasks" end,
keys = {
{ "<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" },
},
init = function()
require("astrocore").on_load("telescope.nvim", function() require("telescope").load_extension "toggletasks" end)
end,
}

0 comments on commit 5a1ad9b

Please sign in to comment.