From c6e69719635b3b65f016e0dfff0368e790b608b8 Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Sat, 26 Oct 2024 00:03:29 +0700 Subject: [PATCH] refactor(nvim): keep win config simple --- configs/nvim/lua/gpt/init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/nvim/lua/gpt/init.lua b/configs/nvim/lua/gpt/init.lua index 9da67ca..0e3f6d2 100644 --- a/configs/nvim/lua/gpt/init.lua +++ b/configs/nvim/lua/gpt/init.lua @@ -137,9 +137,7 @@ M.create = function (options) vim.bo[P.bufid].bufhidden = 'wipe' vim.bo[P.bufid].modifiable = true vim.api.nvim_buf_call(P.bufid, function () - vim.fn.termopen(cmd, { - cwd = vim.fn.getcwd(-1, -1), - }) + vim.fn.termopen(cmd, {}) end) P.add_event_listener(opts)