Skip to content

Commit

Permalink
fix: allow highlighting in quickfix buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 11, 2021
1 parent a7c12f2 commit f4d35a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Empty file added .gitignore
Empty file.
3 changes: 2 additions & 1 deletion lua/todo-comments/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ end

function M.is_valid_buf(buf)
-- Skip special buffers
if vim.api.nvim_buf_get_option(buf, "buftype") ~= "" then return false end
local buftype = vim.api.nvim_buf_get_option(buf, "buftype")
if (buftype ~= "" and buftype ~= "quickfix") then return false end
return true
end

Expand Down

0 comments on commit f4d35a2

Please sign in to comment.