Skip to content

Commit

Permalink
feat: add a :GpLog command
Browse files Browse the repository at this point in the history
that opens up the logfile
  • Loading branch information
teto committed Sep 23, 2024
1 parent 2372d53 commit b2b0f15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2b0f15

Please sign in to comment.