From ab80dd757fbaa4d9cb8a7d758eedd855f6a93cd2 Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Mon, 30 Sep 2024 12:48:37 +0100 Subject: [PATCH] Minor improvements --- lua/plugins/chatgpt.lua | 8 +++++++- lua/plugins/rest.lua | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/plugins/chatgpt.lua b/lua/plugins/chatgpt.lua index 0f16169..f22cb72 100644 --- a/lua/plugins/chatgpt.lua +++ b/lua/plugins/chatgpt.lua @@ -12,10 +12,16 @@ return { }, }, openai_params = { - max_tokens = 10000, + max_tokens = 4096, model = 'gpt-4o-mini', }, }, + cmd = { + 'ChatGPT', + 'ChatGPTRun', + 'ChatGPTActAs' + }, + keys = { { 'cg', vim.cmd.ChatGPT }, }, diff --git a/lua/plugins/rest.lua b/lua/plugins/rest.lua index a363270..6a77493 100644 --- a/lua/plugins/rest.lua +++ b/lua/plugins/rest.lua @@ -7,7 +7,7 @@ return { require('rest-nvim').setup() end, keys = { - {'r', function() require'rest-nvim'.run() end}, + {'r', function() vim.cmd[[Rest run]] end}, } }, }