Skip to content

Commit

Permalink
fix(chatgpt-nvim): Add missing cmd and bindings (#1067)
Browse files Browse the repository at this point in the history
fix(chatgpt-nvim): lazy loading and binding for ChatGPTCompleteCode cmd
  • Loading branch information
maxbrunet authored Jun 23, 2024
1 parent 9ad5b67 commit 1a27778
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/astrocommunity/editing-support/chatgpt-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
return {
"jackMort/ChatGPT.nvim",
cmd = { "ChatGPT", "ChatGPTActAs", "ChatGPTEditWithInstructions", "ChatGPTRun" },
cmd = { "ChatGPT", "ChatGPTActAs", "ChatGPTCompleteCode", "ChatGPTEditWithInstructions", "ChatGPTRun" },
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
Expand All @@ -13,7 +13,8 @@ return {
maps.n[prefix] = { desc = require("astroui").get_icon("ChatGPT", 1, true) .. "ChatGPT" }
maps.v[prefix] = { desc = require("astroui").get_icon("ChatGPT", 1, true) .. "ChatGPT" }
maps.n[prefix .. "c"] = { "<cmd>ChatGPT<CR>", desc = "ChatGPT" }
maps.n[prefix .. "C"] = { "<Cmd>ChatGPTActAs<CR>", desc = "ChatGPT Acts As ..." }
maps.n[prefix .. "C"] = { "<cmd>ChatGPTActAs<CR>", desc = "ChatGPT Acts As ..." }
maps.n[prefix .. "m"] = { "<cmd>ChatGPTCompleteCode<CR>", desc = "Complete Code" }

maps.n[prefix .. "e"] = { "<cmd>ChatGPTEditWithInstruction<CR>", desc = "Edit with instruction" }
maps.v[prefix .. "e"] = { "<cmd>ChatGPTEditWithInstruction<CR>", desc = "Edit with instruction" }
Expand Down

0 comments on commit 1a27778

Please sign in to comment.