-- Buffer-local settings for .shout files
vim.bo.commentstring = "$# %s"
vim.bo.shiftwidth = 0
vim.bo.tabstop = 2
vim.bo.expandtab = true

-- Commands
vim.api.nvim_buf_create_user_command(0, "ShoutRun", function()
  require("shout").run()
end, { desc = "Run current .shout file" })

vim.api.nvim_buf_create_user_command(0, "ShoutUpdate", function()
  require("shout").update()
end, { desc = "Run with --update to capture actual output" })

vim.api.nvim_buf_create_user_command(0, "ShoutRunAll", function()
  require("shout").run_all()
end, { desc = "Run all .shout files in test/" })
