Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mosheavni committed Dec 26, 2024
1 parent 961525b commit a92ead6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions nvim/.config/nvim/lua/user/run-buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local function cmd_or_break(ft, file_name)
cmd = cmd .. ' ' .. file_name
end

if cmd == 'open' then
if vim.startswith(cmd, 'open') then
vim.ui.open(file_name)
return nil, true
end
Expand All @@ -120,18 +120,17 @@ local function cmd_or_break(ft, file_name)
return nil, true
end

if ft == 'terraform' then
cmd = 'terragrunt plan'
---@diagnostic disable-next-line: undefined-field
end

if ft == 'make' then
cmd = get_make(file_name)
if not cmd then
return nil, true
end
end

if ft == 'terraform' then
cmd = 'terragrunt plan'
end

return cmd, false
end

Expand Down

0 comments on commit a92ead6

Please sign in to comment.