From 458a84bd1db856c21f234a504ec384191a9899cf Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 11 Nov 2024 09:31:39 +0100 Subject: [PATCH] fix(terminal): pass a list of strings to termopen to prevent splitting. Fixes #59 --- lua/snacks/terminal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/snacks/terminal.lua b/lua/snacks/terminal.lua index 60ec2ae6..6e8647bd 100644 --- a/lua/snacks/terminal.lua +++ b/lua/snacks/terminal.lua @@ -92,7 +92,7 @@ function M.open(cmd, opts) cwd = opts.cwd, env = opts.env, } - vim.fn.termopen(cmd or vim.o.shell, vim.tbl_isempty(term_opts) and vim.empty_dict() or term_opts) + vim.fn.termopen(cmd or { vim.o.shell }, vim.tbl_isempty(term_opts) and vim.empty_dict() or term_opts) end) if opts.interactive ~= false then