From 376b9c5c16b9d8b121b73516219082e57b397bc9 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Thu, 30 Apr 2026 23:26:20 -0400 Subject: [PATCH] added pi.nvim --- lazy-lock.json | 3 ++- lua/plugins/pi.lua | 18 ++++++++++++++++++ lua/plugins/which-key.lua | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 lua/plugins/pi.lua diff --git a/lazy-lock.json b/lazy-lock.json index e2b4d99..6d4ff31 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -12,9 +12,10 @@ "mason.nvim": { "branch": "main", "commit": "cb8445f8ce85d957416c106b780efd51c6298f89" }, "nvim-dap": { "branch": "master", "commit": "45a69eba683a2c448dd9ecfc4de89511f0646b5f" }, "nvim-lspconfig": { "branch": "master", "commit": "31026a13eefb20681124706a79fc1df6bf11ab27" }, - "nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" }, + "nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" }, "nvim-web-devicons": { "branch": "master", "commit": "4fc505ac7bd7692824a142e96e5f529c133862f8" }, "oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" }, + "pi.nvim": { "branch": "main", "commit": "6e86a704ed6ff488fda78b64f4e564d6ee620785" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, "render-markdown.nvim": { "branch": "main", "commit": "3f3eea97b80839f629c951ca660ffd125bfa5b34" }, "todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" }, diff --git a/lua/plugins/pi.lua b/lua/plugins/pi.lua new file mode 100644 index 0000000..6f356b8 --- /dev/null +++ b/lua/plugins/pi.lua @@ -0,0 +1,18 @@ +return { + { + "pablopunk/pi.nvim", + config = function() + require("pi").setup({ + log_path = vim.fn.stdpath("state") .. "/pi-nvim.log", + }) + + require("which-key").add({ + { "a", group = "AI" }, + { "aa", "PiAsk", desc = "Ask Pi" }, + { "al", "PiLog", desc = "Pi Log" }, + { "ax", "PiCancel", desc = "Cancel Pi" }, + { "aa", "PiAskSelection", mode = "v", desc = "Ask Pi" }, + }) + end, + }, +} diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua index 3249172..8533891 100644 --- a/lua/plugins/which-key.lua +++ b/lua/plugins/which-key.lua @@ -59,6 +59,7 @@ return { { "[d", vim.diagnostic.goto_prev, desc = "Prev Diagnostic" }, { "G", group = "Git"}, + { "a", group = "AI"}, { "f", group = "Files"}, { "c", group = "Code"}, { "d", group = "Debug"},