summary refs log tree commit diff
path: root/.vim/lua/misc.lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-07-01 17:02:38 +0200
committerRobert Günzler <r@gnzler.io>2022-08-02 22:15:22 +0200
commit9967b1702a7aa29232194f2c5dbf02d2b6e5bf0d (patch)
tree396f68ef10fe3497c5cbe7c2145846bd24c9cd22 /.vim/lua/misc.lua
parente41e232f1371c1332c1ecb406ef157d68f4626c3 (diff)
vim: add mapping to open terminal from dirbuf
Diffstat (limited to '')
-rw-r--r--.vim/lua/misc.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/.vim/lua/misc.lua b/.vim/lua/misc.lua
index 7d4fa31..37ef854 100644
--- a/.vim/lua/misc.lua
+++ b/.vim/lua/misc.lua
@@ -40,8 +40,7 @@ function M.open_under_cursor(cmd, detect_cmd)
     if cmd:sub(1, 1) == ":" then
       vim.cmd(cmd:sub(2) .. ' ' .. txt)
     else
-      local c
-      c = vim.loop.spawn(cmd, { args = {txt} }, function() c:close() end)
+      vim.loop.spawn(cmd, {args = {txt}})
     end
   end)
 end