summary refs log tree commit diff
path: root/.vim
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-08-17 15:28:18 +0200
committerRobert Günzler <r@gnzler.io>2022-08-17 15:28:18 +0200
commit6310409a0113016379fd9d77e1a20ee94445505a (patch)
tree03ffbf9c5d44443fa82e30d08772ae89da24cf3f /.vim
parent4727b38cfeb30ac72635a9854a26ef13bc63592b (diff)
vim: use expandcmd in jobrun helper
Diffstat (limited to '.vim')
-rw-r--r--.vim/lua/job.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/.vim/lua/job.lua b/.vim/lua/job.lua
index bf02fc6..cb5e95a 100644
--- a/.vim/lua/job.lua
+++ b/.vim/lua/job.lua
@@ -91,6 +91,11 @@ function M.jobstart(opts)
     end
   end)
 
+  -- run vim.fn.expand() on all args
+  for i=1, #opts.args do
+    opts.args[i] = vim.fn.expandcmd(opts.args[i])
+  end
+
   local j = Job:new(opts)
   j:start()