Updates to terminal helpers

This commit is contained in:
2026-10-04 11:06:19 +01:00
parent eae0f8f231
commit d0225e35a0
2 changed files with 9 additions and 16 deletions
-15
View File
@@ -116,21 +116,6 @@ end
local function laravel_utils(dir)
map('<Leader>D', function()
local term_bufnr = -1
for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do
if vim.bo[bufnr].buftype == 'terminal' then
local name = vim.api.nvim_buf_get_name(bufnr)
if name:match '/bin/var-dump-server$' then
term_bufnr = bufnr
end
end
end
if term_bufnr ~= -1 then
vim.api.nvim_open_win(term_bufnr, true)
return
end
helpers.open_term {
cmd = dir .. 'vendor/bin/var-dump-server',
buf_opts = {