Skip to content

Commit

Permalink
feat(Runner): set filetype for terminal buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
Dax89 committed Dec 18, 2023
1 parent 4fef9c4 commit b3db359
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/automaton/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ function Runner._run(config, ws, cmds, e, onexit, i)
Runner.termchanid = vim.api.nvim_open_term(Runner.termbufid, {})
vim.api.nvim_win_set_buf(Runner.termwinid, Runner.termbufid)
vim.api.nvim_buf_set_name(Runner.termbufid, e.name)
vim.api.nvim_buf_set_option(Runner.termbufid, "filetype", "automaton-terminal")
vim.api.nvim_command("resize " .. tostring(vim.F.if_nil(config.terminal.size, 10)))
end
else
Expand Down

0 comments on commit b3db359

Please sign in to comment.