folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.36k stars 175 forks source link

Ensures statuscolumn does not appear in Trouble #299

Closed wroyca closed 1 year ago

wroyca commented 1 year ago

Following Neovim >= 0.9, statuscolumn was introduced. This PR ensures that it does not appear in Trouble.

Before:

image

After:

image

folke commented 1 year ago

Any statusline implementer should check for:

  if vim.wo[win].signcolumn == "no" then
    return ""
  end

No changes should be required for this to existing plugins.

wroyca commented 1 year ago

Thank! I had a sense that there might be a solution like that, but wasn't entirely certain how