Replies: 2 comments
-
|
I have the exact same problem 😢😢 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Here is a workaround. Use the API directly instead of the user cmd. You can change the script like this: return {
"folke/trouble.nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
cmd = "Trouble",
keys = {
{
"<leader>xx",
function()
require("trouble").toggle("diagnostics")
end,
desc = "Diagnostics (Trouble)",
},
},
}This should fix your problem. The side effect of it is you have to set the general settings like windows settings inside the toggle function. The global one set in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am honestly unsure what's going on here. It was working before. Then I updated to 0.11.0. It still seemed to work, but then after updating to 0.11.1 and higher it stopped. Downgrading did not seem to fix it. So at this point I wonder if I have been hallucinating things. 😅
Anyway, this is the configuration I use, pretty run-of-the-mill (
.config/nvim/lua/plugins/trouble.lua):However, trying to use either the key binding gives me
E492: Not an editor command: Trouble diagnostics toggle.When trying to use direct
:Troublecommand, I getE492: Not an editor command: Trouble.Lazy shows it as loaded:
And
:help trouble.nvim.txtworks.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions