trouble.nvim icon indicating copy to clipboard operation
trouble.nvim copied to clipboard

Troubletoggle generates Error while opening.

Open akashdiphazra opened this issue 3 years ago • 2 comments

lvim.builtin.which_key.mappings["t"] = {
  name = "Diagnostics",
  t = { "<cmd>TroubleToggle<cr>", "trouble" },
  w = { "<cmd>TroubleToggle workspace_diagnostics<cr>", "workspace" },
  d = { "<cmd>TroubleToggle document_diagnostics<cr>", "document" },
  q = { "<cmd>TroubleToggle quickfix<cr>", "quickfix" },
  l = { "<cmd>TroubleToggle loclist<cr>", "loclist" },
  r = { "<cmd>TroubleToggle lsp_references<cr>", "references" },
}

202669726-99ae744b-539d-4d0d-a68b-c2a31abadb19.webm

akashdiphazra avatar Nov 22 '22 17:11 akashdiphazra

I'm just playing around with (vim, neovim and) LunarVim for the first time and I had the same problem. I don't think it has anything to do with this plugin but the lvim config. Try adding

lvim.plugins = {
  {"folke/trouble.nvim"}
}

Right about your mapping and run :PackerSync afterwords and restart lvim.

Let me know if it works for you, it did the trick for me.

RHansenSmith avatar Nov 24 '22 20:11 RHansenSmith

I did exactly what U say and same behavior here. Any clue how to solved it?

aramacs avatar Jan 17 '23 10:01 aramacs

Development on the main branch is EOL.

Trouble has been rewritten and will be merged in main soon.

This issue/feature either no longer exists or has been implemented on dev.

For more info, see https://github.com/folke/trouble.nvim/tree/dev

folke avatar Mar 29 '24 07:03 folke