Skip to content

Commit

Permalink
fix(qf): only listen for TextChanged in the main buffer. See #201
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 30, 2024
1 parent caeaed3 commit f75992f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/trouble/sources/qf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ M.config = {
modes = {
qflist = {
desc = "Quickfix List",
events = { "BufEnter", "QuickFixCmdPost", "TextChanged" },
events = {
"QuickFixCmdPost",
{ event = "TextChanged", main = true },
},
source = "qf.qflist",
groups = {
{ "filename", format = "{file_icon} {filename} {count}" },
Expand All @@ -35,7 +38,10 @@ M.config = {
},
loclist = {
desc = "Location List",
events = { "BufEnter", "TextChanged" },
events = {
"BufEnter",
{ event = "TextChanged", main = true },
},
source = "qf.loclist",
groups = {
{ "filename", format = "{file_icon} {filename} {count}" },
Expand Down

0 comments on commit f75992f

Please sign in to comment.