diff --git a/lua/astrocommunity/git/octo-nvim/init.lua b/lua/astrocommunity/git/octo-nvim/init.lua index da41ca729..474578a1b 100644 --- a/lua/astrocommunity/git/octo-nvim/init.lua +++ b/lua/astrocommunity/git/octo-nvim/init.lua @@ -1,4 +1,8 @@ local prefix = "O" +local maps = { n = {} } +local icon = vim.g.icons_enabled and " " or "" +maps.n[prefix] = { desc = icon .. "Octo" } +require("astronvim.utils").set_mappings(maps) return { "pwntester/octo.nvim", dependencies = { @@ -11,7 +15,6 @@ return { use_diagnostic_signs = true, }, keys = { - { prefix, desc = "Octo" }, { prefix .. "c", desc = "Comments" }, { prefix .. "ca", "Octo comment add", desc = "Add a new comment" }, { prefix .. "cd", "Octo comment delete", desc = "Delete a comment" },