Skip to content

Commit

Permalink
feat(output): set filetype for output buffer
Browse files Browse the repository at this point in the history
See #135
  • Loading branch information
rcarriga committed Oct 31, 2022
1 parent 0be9899 commit beca3c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lua/neotest/client/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ end
---@return string, neotest.Adapter
function NeotestClient:get_adapter(file_path)
self:ensure_started()
return self:_get_adapter(file_path, nil, false)
return self:_get_adapter(file_path, nil)
end

---@private
Expand Down
8 changes: 1 addition & 7 deletions lua/neotest/consumers/output.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,7 @@ local function open_output(result, opts)
win = float.win_id
end

async.api.nvim_buf_set_keymap(buf, "n", "q", "", {
noremap = true,
silent = true,
callback = function()
pcall(vim.api.nvim_win_close, win, true)
end,
})
vim.api.nvim_buf_set_option(buf, "filetype", "neotest-output")
end

local neotest = {}
Expand Down

0 comments on commit beca3c6

Please sign in to comment.