Skip to content

Commit

Permalink
fix: set the filetype lastly so autocmd's can override options from it (
Browse files Browse the repository at this point in the history
#126)

Theme plugins can apply darkened highlights on it for example
  • Loading branch information
augustocdias committed Dec 10, 2021
1 parent ea9a5e3 commit b5353dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ function View:setup(opts)
end
self:set_option("bufhidden", "wipe")
self:set_option("buftype", "nofile")
self:set_option("filetype", "Trouble")
self:set_option("swapfile", false)
self:set_option("buflisted", false)
self:set_option("winfixwidth", true, true)
Expand All @@ -151,6 +150,7 @@ function View:setup(opts)
self:set_option("foldenable", false, true)
self:set_option("winhighlight", "Normal:TroubleNormal,EndOfBuffer:TroubleNormal,SignColumn:TroubleNormal", true)
self:set_option("fcs", "eob: ", true)
self:set_option("filetype", "Trouble")

for action, keys in pairs(config.options.action_keys) do
if type(keys) == "string" then
Expand Down

0 comments on commit b5353dd

Please sign in to comment.