Skip to content

Commit

Permalink
feat(overseer-nvim): Add <Leader>T keymaps (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanyl committed Apr 29, 2024
1 parent 9f1afcb commit c1f1a26
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lua/astrocommunity/code-runner/overseer-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ return {
"OverseerClearCache",
},
opts = {},
dependencies = {
{ "AstroNvim/astroui", opts = { icons = { Overseer = "" } } },
{
"AstroNvim/astrocore",
opts = function(_, opts)
local maps = opts.mappings
local prefix = "<leader>T"
maps.n[prefix] = { desc = require("astroui").get_icon("Overseer", 1, true) .. "Overseer" }

maps.n[prefix .. "t"] = { "<Cmd>OverseerToggle<CR>", desc = "Toggle" }
maps.n[prefix .. "c"] = { "<Cmd>OverseerRunCmd<CR>", desc = "Run Command" }
maps.n[prefix .. "r"] = { "<Cmd>OverseerRun<CR>", desc = "Run Task" }
maps.n[prefix .. "q"] = { "<Cmd>OverseerQuickAction<CR>", desc = "Quick Action" }
maps.n[prefix .. "a"] = { "<Cmd>OverseerTaskAction<CR>", desc = "Task Action" }
maps.n[prefix .. "i"] = { "<Cmd>OverseerInfo<CR>", desc = "Info" }
end,
},
},
},
{
"catppuccin/nvim",
Expand Down

0 comments on commit c1f1a26

Please sign in to comment.