Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lua/overseer/task.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ function Task.new(opts)
local bufnr = task:get_bufnr()
if bufnr then
vim.b[bufnr].overseer_task = task.id
vim.api.nvim_buf_call(bufnr, function()
vim.bo[bufnr].filetype = "OverseerOutput"
end)
end
task:subscribe("on_status", task_list.on_task_updated)
return task
Expand Down Expand Up @@ -640,6 +643,9 @@ function Task:start()
if bufnr then
vim.bo[bufnr].buflisted = false
vim.b[bufnr].overseer_task = self.id
vim.api.nvim_buf_call(bufnr, function()
vim.bo[bufnr].filetype = "OverseerOutput"
end)
end

util.replace_buffer_in_wins(self.prev_bufnr, bufnr)
Expand Down
3 changes: 3 additions & 0 deletions lua/overseer/task_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ local function get_empty_bufnr()
vim.b[empty_bufnr].overseer_task = -1
vim.api.nvim_buf_set_lines(empty_bufnr, 0, -1, true, { "--no task buffer--" })
vim.bo[empty_bufnr].bufhidden = "wipe"
vim.api.nvim_buf_call(empty_bufnr, function()
vim.bo[empty_bufnr].filetype = "OverseerOutput"
end)
end
return empty_bufnr
end
Expand Down