From b2b0f157c9b32de95ea48fc5b7a5761de043d46a Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:20:33 +0200 Subject: [PATCH] feat: add a :GpLog command that opens up the logfile --- lua/gp/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/gp/init.lua b/lua/gp/init.lua index 128914cb..846ca4b1 100644 --- a/lua/gp/init.lua +++ b/lua/gp/init.lua @@ -1513,6 +1513,10 @@ M.cmd.Agent = function(params) end end +M.cmd.Log = function() + vim.cmd(string.format('tabnew %s', M.config.log_file)) +end + M.cmd.NextAgent = function() local buf = vim.api.nvim_get_current_buf() local file_name = vim.api.nvim_buf_get_name(buf)