[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-70609":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},70609,"trouble.nvim","folke\u002Ftrouble.nvim","folke","🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.","",null,"Lua",6814,209,19,4,0,6,32,12,37.97,"Apache License 2.0",false,"main",true,[26,27,28,29,30],"lua","neovim","neovim-lsp","neovim-lua","neovim-plugin","2026-06-12 02:02:35","# 🚦 Trouble\n\nA pretty list for showing diagnostics, references, telescope results, quickfix and location lists to help you solve all the trouble your code is causing.\n\n![image](https:\u002F\u002Fgithub.com\u002Ffolke\u002Ftrouble.nvim\u002Fassets\u002F292349\u002F481bc1f7-cb93-432d-8ab6-f54044334b96)\n\n## ✨ Features\n\n- Diagnostics\n- LSP references\n- LSP implementations\n- LSP definitions\n- LSP type definitions\n- LSP Document Symbols\n- LSP Incoming\u002FOutgoing calls\n- quickfix list\n- location list\n- [Telescope](https:\u002F\u002Fgithub.com\u002Fnvim-telescope\u002Ftelescope.nvim) search results\n- [fzf-lua](https:\u002F\u002Fgithub.com\u002Fibhagwan\u002Ffzf-lua) results\n\n## 📰 What's new?\n\nThis is a full rewrite of the original **trouble.nvim**.\n\nThe new version is much more flexible and powerful,\nwith a lot of new features and improvements:\n\n- multiple trouble windows at the same time\n- LSP document symbols\n- LSP incoming\u002Foutgoing calls\n- lots of options to configure trouble windows (floats or splits)\n- `focus` option to focus the trouble window when opened (or not)\n- `follow` option to follow the item under the cursor\n- `pinned` option to pin the buffer as the source for the opened trouble window\n- full tree views of anything\n- highly configurable views with custom formatters, filters, and sorters\n- show multiple sections in the same view\n- multi-line messages\n- prettier and configurable indent guides\n- tree view that follows the natural hierarchy of the items (like document symbols, or file structure)\n- expansive API and `Trouble` command\n- trouble `modes` to define custom views\n- statusline component (useful with document symbols)\n\n## ⚡️ Requirements\n\n- Neovim >= 0.9.2\n- Neovim >= 0.10.0 **OR** the `markdown` and `markdown_inline` [nvim-treesitter](https:\u002F\u002Fgithub.com\u002Fnvim-treesitter\u002Fnvim-treesitter) parsers\n- Properly configured Neovim LSP client\n- [nvim-web-devicons](https:\u002F\u002Fgithub.com\u002Fnvim-tree\u002Fnvim-web-devicons) is optional to enable file icons\n- a theme with properly configured highlight groups for Neovim Diagnostics\n- a [patched font](https:\u002F\u002Fwww.nerdfonts.com\u002F) for the default severity and fold icons\n\n## 📦 Installation\n\nInstall the plugin with your preferred package manager:\n\n### [lazy.nvim](https:\u002F\u002Fgithub.com\u002Ffolke\u002Flazy.nvim)\n\n```lua\n{\n  \"folke\u002Ftrouble.nvim\",\n  opts = {}, -- for default options, refer to the configuration section for custom setup.\n  cmd = \"Trouble\",\n  keys = {\n    {\n      \"\u003Cleader>xx\",\n      \"\u003Ccmd>Trouble diagnostics toggle\u003Ccr>\",\n      desc = \"Diagnostics (Trouble)\",\n    },\n    {\n      \"\u003Cleader>xX\",\n      \"\u003Ccmd>Trouble diagnostics toggle filter.buf=0\u003Ccr>\",\n      desc = \"Buffer Diagnostics (Trouble)\",\n    },\n    {\n      \"\u003Cleader>cs\",\n      \"\u003Ccmd>Trouble symbols toggle focus=false\u003Ccr>\",\n      desc = \"Symbols (Trouble)\",\n    },\n    {\n      \"\u003Cleader>cl\",\n      \"\u003Ccmd>Trouble lsp toggle focus=false win.position=right\u003Ccr>\",\n      desc = \"LSP Definitions \u002F references \u002F ... (Trouble)\",\n    },\n    {\n      \"\u003Cleader>xL\",\n      \"\u003Ccmd>Trouble loclist toggle\u003Ccr>\",\n      desc = \"Location List (Trouble)\",\n    },\n    {\n      \"\u003Cleader>xQ\",\n      \"\u003Ccmd>Trouble qflist toggle\u003Ccr>\",\n      desc = \"Quickfix List (Trouble)\",\n    },\n  },\n}\n```\n\n## ⚙️ Configuration\n\n### Setup\n\n**Trouble** is highly configurable. Please refer to the default settings below.\n\n\u003Cdetails>\u003Csummary>Default Settings\u003C\u002Fsummary>\n\n\u003C!-- config:start -->\n\n```lua\n---@class trouble.Mode: trouble.Config,trouble.Section.spec\n---@field desc? string\n---@field sections? string[]\n\n---@class trouble.Config\n---@field mode? string\n---@field config? fun(opts:trouble.Config)\n---@field formatters? table\u003Cstring,trouble.Formatter> custom formatters\n---@field filters? table\u003Cstring, trouble.FilterFn> custom filters\n---@field sorters? table\u003Cstring, trouble.SorterFn> custom sorters\nlocal defaults = {\n  auto_close = false, -- auto close when there are no items\n  auto_open = false, -- auto open when there are items\n  auto_preview = true, -- automatically open preview when on an item\n  auto_refresh = true, -- auto refresh when open\n  auto_jump = false, -- auto jump to the item when there's only one\n  focus = false, -- Focus the window when opened\n  restore = true, -- restores the last location in the list when opening\n  follow = true, -- Follow the current item\n  indent_guides = true, -- show indent guides\n  max_items = 200, -- limit number of items that can be displayed per section\n  multiline = true, -- render multi-line messages\n  pinned = false, -- When pinned, the opened trouble window will be bound to the current buffer\n  warn_no_results = true, -- show a warning when there are no results\n  open_no_results = false, -- open the trouble window when there are no results\n  ---@type trouble.Window.opts\n  win = {}, -- window options for the results window. Can be a split or a floating window.\n  -- Window options for the preview window. Can be a split, floating window,\n  -- or `main` to show the preview in the main editor window.\n  ---@type trouble.Window.opts\n  preview = {\n    type = \"main\",\n    -- when a buffer is not yet loaded, the preview window will be created\n    -- in a scratch buffer with only syntax highlighting enabled.\n    -- Set to false, if you want the preview to always be a real loaded buffer.\n    scratch = true,\n  },\n  -- Throttle\u002FDebounce settings. Should usually not be changed.\n  ---@type table\u003Cstring, number|{ms:number, debounce?:boolean}>\n  throttle = {\n    refresh = 20, -- fetches new data when needed\n    update = 10, -- updates the window\n    render = 10, -- renders the window\n    follow = 100, -- follows the current item\n    preview = { ms = 100, debounce = true }, -- shows the preview for the current item\n  },\n  -- Key mappings can be set to the name of a builtin action,\n  -- or you can define your own custom action.\n  ---@type table\u003Cstring, trouble.Action.spec|false>\n  keys = {\n    [\"?\"] = \"help\",\n    r = \"refresh\",\n    R = \"toggle_refresh\",\n    q = \"close\",\n    o = \"jump_close\",\n    [\"\u003Cesc>\"] = \"cancel\",\n    [\"\u003Ccr>\"] = \"jump\",\n    [\"\u003C2-leftmouse>\"] = \"jump\",\n    [\"\u003Cc-s>\"] = \"jump_split\",\n    [\"\u003Cc-v>\"] = \"jump_vsplit\",\n    -- go down to next item (accepts count)\n    -- j = \"next\",\n    [\"}\"] = \"next\",\n    [\"]]\"] = \"next\",\n    -- go up to prev item (accepts count)\n    -- k = \"prev\",\n    [\"{\"] = \"prev\",\n    [\"[[\"] = \"prev\",\n    dd = \"delete\",\n    d = { action = \"delete\", mode = \"v\" },\n    i = \"inspect\",\n    p = \"preview\",\n    P = \"toggle_preview\",\n    zo = \"fold_open\",\n    zO = \"fold_open_recursive\",\n    zc = \"fold_close\",\n    zC = \"fold_close_recursive\",\n    za = \"fold_toggle\",\n    zA = \"fold_toggle_recursive\",\n    zm = \"fold_more\",\n    zM = \"fold_close_all\",\n    zr = \"fold_reduce\",\n    zR = \"fold_open_all\",\n    zx = \"fold_update\",\n    zX = \"fold_update_all\",\n    zn = \"fold_disable\",\n    zN = \"fold_enable\",\n    zi = \"fold_toggle_enable\",\n    gb = { -- example of a custom action that toggles the active view filter\n      action = function(view)\n        view:filter({ buf = 0 }, { toggle = true })\n      end,\n      desc = \"Toggle Current Buffer Filter\",\n    },\n    s = { -- example of a custom action that toggles the severity\n      action = function(view)\n        local f = view:get_filter(\"severity\")\n        local severity = ((f and f.filter.severity or 0) + 1) % 5\n        view:filter({ severity = severity }, {\n          id = \"severity\",\n          template = \"{hl:Title}Filter:{hl} {severity}\",\n          del = severity == 0,\n        })\n      end,\n      desc = \"Toggle Severity Filter\",\n    },\n  },\n  ---@type table\u003Cstring, trouble.Mode>\n  modes = {\n    -- sources define their own modes, which you can use directly,\n    -- or override like in the example below\n    lsp_references = {\n      -- some modes are configurable, see the source code for more details\n      params = {\n        include_declaration = true,\n      },\n    },\n    -- The LSP base mode for:\n    -- * lsp_definitions, lsp_references, lsp_implementations\n    -- * lsp_type_definitions, lsp_declarations, lsp_command\n    lsp_base = {\n      params = {\n        -- don't include the current location in the results\n        include_current = false,\n      },\n    },\n    -- more advanced example that extends the lsp_document_symbols\n    symbols = {\n      desc = \"document symbols\",\n      mode = \"lsp_document_symbols\",\n      focus = false,\n      win = { position = \"right\" },\n      filter = {\n        -- remove Package since luals uses it for control flow structures\n        [\"not\"] = { ft = \"lua\", kind = \"Package\" },\n        any = {\n          -- all symbol kinds for help \u002F markdown files\n          ft = { \"help\", \"markdown\" },\n          -- default set of symbol kinds\n          kind = {\n            \"Class\",\n            \"Constructor\",\n            \"Enum\",\n            \"Field\",\n            \"Function\",\n            \"Interface\",\n            \"Method\",\n            \"Module\",\n            \"Namespace\",\n            \"Package\",\n            \"Property\",\n            \"Struct\",\n            \"Trait\",\n          },\n        },\n      },\n    },\n  },\n  icons = {\n    ---@type trouble.Indent.symbols\n    indent = {\n      top           = \"│ \",\n      middle        = \"├╴\",\n      last          = \"└╴\",\n      -- last          = \"-╴\",\n      -- last       = \"╰╴\", -- rounded\n      fold_open     = \" \",\n      fold_closed   = \" \",\n      ws            = \"  \",\n    },\n    folder_closed   = \" \",\n    folder_open     = \" \",\n    kinds = {\n      Array         = \" \",\n      Boolean       = \"󰨙 \",\n      Class         = \" \",\n      Constant      = \"󰏿 \",\n      Constructor   = \" \",\n      Enum          = \" \",\n      EnumMember    = \" \",\n      Event         = \" \",\n      Field         = \" \",\n      File          = \" \",\n      Function      = \"󰊕 \",\n      Interface     = \" \",\n      Key           = \" \",\n      Method        = \"󰊕 \",\n      Module        = \" \",\n      Namespace     = \"󰦮 \",\n      Null          = \" \",\n      Number        = \"󰎠 \",\n      Object        = \" \",\n      Operator      = \" \",\n      Package       = \" \",\n      Property      = \" \",\n      String        = \" \",\n      Struct        = \"󰆼 \",\n      TypeParameter = \" \",\n      Variable      = \"󰀫 \",\n    },\n  },\n}\n```\n\n\u003C!-- config:end -->\n\n\u003C\u002Fdetails>\n\nMake sure to check the [Examples](\u002Fdocs\u002Fexamples.md)!\n\n## 🚀 Usage\n\n### Commands\n\nThe **Trouble** command is a wrapper around the **Trouble** API.\nIt can do anything the regular API can do.\n\n- `Trouble [mode] [action] [options]`\n\nSome examples:\n\n- Toggle diagnostics for the current buffer and stay in the current window:\n  - `Trouble diagnostics toggle focus=false filter.buf=0`\n- Show document symbols on the right of the current window.\n  Keep the document symbols in sync with the buffer you started the command in.\n  - `Trouble symbols toggle pinned=true win.relative=win win.position=right`\n- You can use **lua** code in the options for the `Trouble` command.\n  The examples below all do the same thing.\n  - `Trouble diagnostics filter.severity=vim.diagnostic.severity.ERROR`\n  - `Trouble diagnostics filter.severity = vim.diagnostic.severity.ERROR`\n  - `Trouble diagnostics filter = { severity=vim.diagnostic.severity.ERROR }`\n- Merging of nested options, with or without quoting strings:\n  - `Trouble diagnostics win.type = split win.position=right`\n  - `Trouble diagnostics win = { type = split, position=right}`\n  - `Trouble diagnostics win = { type = \"split\", position='right'}`\n\nPlease refer to the API section for more information on the available actions and options.\n\nModes:\n\n\u003C!-- modes:start -->\n\n- **diagnostics**: diagnostics\n- **fzf**: FzfLua results previously opened with `require('trouble.sources.fzf').open()`.\n- **fzf_files**: FzfLua results previously opened with `require('trouble.sources.fzf').open()`.\n- **loclist**: Location List\n- **lsp**: LSP definitions, references, implementations, type definitions, and declarations\n- **lsp_command**: command\n- **lsp_declarations**: declarations\n- **lsp_definitions**: definitions\n- **lsp_document_symbols**: document symbols\n- **lsp_implementations**: implementations\n- **lsp_incoming_calls**: Incoming Calls\n- **lsp_outgoing_calls**: Outgoing Calls\n- **lsp_references**: references\n- **lsp_type_definitions**: type definitions\n- **qflist**: Quickfix List\n- **quickfix**: Quickfix List\n- **snacks**: Snacks results previously opened with `require('trouble.sources.snacks').open()`.\n- **snacks_files**: Snacks results previously opened with `require('trouble.sources.snacks').open()`.\n- **symbols**: document symbols\n- **telescope**: Telescope results previously opened with `require('trouble.sources.telescope').open()`.\n- **telescope_files**: Telescope results previously opened with `require('trouble.sources.telescope').open()`.\n\n\u003C!-- modes:end -->\n\n### Filters\n\nPlease refer to the [filter docs](docs\u002Ffilter.md) for more information examples on filters.\n\n### API\n\nYou can use the following functions in your keybindings:\n\n\u003Cdetails>\u003Csummary>API\u003C\u002Fsummary>\n\n\u003C!-- api:start -->\n\n```lua\n-- Opens trouble with the given mode.\n-- If a view is already open with the same mode,\n-- it will be focused unless `opts.focus = false`.\n-- When a view is already open and `opts.new = true`,\n-- a new view will be created.\n---@param opts? trouble.Mode | { new?: boolean, refresh?: boolean } | string\n---@return trouble.View?\nrequire(\"trouble\").open(opts)\n\n-- Closes the last open view matching the filter.\n---@param opts? trouble.Mode|string\n---@return trouble.View?\nrequire(\"trouble\").close(opts)\n\n-- Toggle the view with the given mode.\n---@param opts? trouble.Mode|string\n---@return trouble.View?\nrequire(\"trouble\").toggle(opts)\n\n-- Returns true if there is an open view matching the mode.\n---@param opts? trouble.Mode|string\nrequire(\"trouble\").is_open(opts)\n\n-- Refresh all open views. Normally this is done automatically,\n-- unless you disabled auto refresh.\n---@param opts? trouble.Mode|string\nrequire(\"trouble\").refresh(opts)\n\n-- Get all items from the active view for a given mode.\n---@param opts? trouble.Mode|string\nrequire(\"trouble\").get_items(opts)\n\n-- Renders a trouble list as a statusline component.\n-- Check the docs for examples.\n---@param opts? trouble.Mode|string|{hl_group?:string}\n---@return {get: (fun():string), has: (fun():boolean)}\nrequire(\"trouble\").statusline(opts)\n\n-- Closes the preview and goes to the main window.\n-- The Trouble window is not closed.\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").cancel(opts)\n\n-- Open the preview\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").delete(opts)\n\n-- filter\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").filter(opts)\n\n-- Go to the first item\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").first(opts)\n\n-- Focus the trouble window\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").focus(opts)\n\n-- Fold close \n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_close(opts)\n\n-- fold close all\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_close_all(opts)\n\n-- Fold close recursive\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_close_recursive(opts)\n\n-- fold disable\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_disable(opts)\n\n-- fold enable\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_enable(opts)\n\n-- fold more\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_more(opts)\n\n-- Fold open \n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_open(opts)\n\n-- fold open all\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_open_all(opts)\n\n-- Fold open recursive\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_open_recursive(opts)\n\n-- fold reduce\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_reduce(opts)\n\n-- Fold toggle \n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_toggle(opts)\n\n-- fold toggle enable\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_toggle_enable(opts)\n\n-- Fold toggle recursive\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_toggle_recursive(opts)\n\n-- fold update\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_update(opts)\n\n-- fold update all\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").fold_update_all(opts)\n\n-- Show the help\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").help(opts)\n\n-- Dump the item to the console\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").inspect(opts)\n\n-- Jump to the item if on an item, otherwise fold the node\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").jump(opts)\n\n-- Jump to the item and close the trouble window\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").jump_close(opts)\n\n-- Jump to the item if on an item, otherwise do nothing\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").jump_only(opts)\n\n-- Open the item in a split\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").jump_split(opts)\n\n-- Open the item in a split and close the trouble window\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").jump_split_close(opts)\n\n-- Open the item in a vsplit\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").jump_vsplit(opts)\n\n-- Open the item in a vsplit and close the trouble window\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").jump_vsplit_close(opts)\n\n-- Go to the last item\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").last(opts)\n\n-- Go to the next item\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").next(opts)\n\n-- Go to the previous item\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").prev(opts)\n\n-- Open the preview\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").preview(opts)\n\n-- Refresh the trouble source\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").refresh(opts)\n\n-- Toggle the preview\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").toggle_preview(opts)\n\n-- Toggle the auto refresh\n---@param opts? trouble.Mode | { new? : boolean } | string\n---@return trouble.View\nrequire(\"trouble\").toggle_refresh(opts)\n```\n\n\u003C!-- api:end -->\n\n\u003C\u002Fdetails>\n\n### Telescope\n\nYou can easily open any search results in **Trouble**, by defining a custom action:\n\n```lua\nlocal actions = require(\"telescope.actions\")\nlocal open_with_trouble = require(\"trouble.sources.telescope\").open\n\n-- Use this to add more results without clearing the trouble list\nlocal add_to_trouble = require(\"trouble.sources.telescope\").add\n\nlocal telescope = require(\"telescope\")\n\ntelescope.setup({\n  defaults = {\n    mappings = {\n      i = { [\"\u003Cc-t>\"] = open_with_trouble },\n      n = { [\"\u003Cc-t>\"] = open_with_trouble },\n    },\n  },\n})\n```\n\nWhen you open telescope, you can now hit `\u003Cc-t>` to open the results in **Trouble**\n\n### fzf-lua\n\nYou can easily open any search results in **Trouble**, by defining a custom action:\n\n```lua\nlocal config = require(\"fzf-lua.config\")\nlocal actions = require(\"trouble.sources.fzf\").actions\nconfig.defaults.actions.files[\"ctrl-t\"] = actions.open\n```\n\nWhen you open fzf-lua, you can now hit `\u003Cc-t>` to open the results in **Trouble**\n\n### Statusline Component\n\nExample for [lualine.nvim](https:\u002F\u002Fgithub.com\u002Fnvim-lualine\u002Flualine.nvim):\n\n```lua\n{\n  \"nvim-lualine\u002Flualine.nvim\",\n  opts = function(_, opts)\n    local trouble = require(\"trouble\")\n    local symbols = trouble.statusline({\n      mode = \"lsp_document_symbols\",\n      groups = {},\n      title = false,\n      filter = { range = true },\n      format = \"{kind_icon}{symbol.name:Normal}\",\n      -- The following line is needed to fix the background color\n      -- Set it to the lualine section you want to use\n      hl_group = \"lualine_c_normal\",\n    })\n    table.insert(opts.sections.lualine_c, {\n      symbols.get,\n      cond = symbols.has,\n    })\n  end,\n}\n```\n\n## 🎨 Colors\n\nThe table below shows all the highlight groups defined for Trouble.\n\n\u003Cdetails>\u003Csummary>Highlight Groups\u003C\u002Fsummary>\n\n\u003C!-- colors:start -->\n\n| Highlight Group | Default Group | Description |\n| --- | --- | --- |\n| **TroubleBasename** | ***TroubleFilename*** |  |\n| **TroubleCode** | ***Special*** |  |\n| **TroubleCount** | ***TabLineSel*** |  |\n| **TroubleDirectory** | ***Directory*** |  |\n| **TroubleFilename** | ***Directory*** |  |\n| **TroubleIconArray** | ***@punctuation.bracket*** |  |\n| **TroubleIconBoolean** | ***@boolean*** |  |\n| **TroubleIconClass** | ***@type*** |  |\n| **TroubleIconConstant** | ***@constant*** |  |\n| **TroubleIconConstructor** | ***@constructor*** |  |\n| **TroubleIconDirectory** | ***Special*** |  |\n| **TroubleIconEnum** | ***@lsp.type.enum*** |  |\n| **TroubleIconEnumMember** | ***@lsp.type.enumMember*** |  |\n| **TroubleIconEvent** | ***Special*** |  |\n| **TroubleIconField** | ***@variable.member*** |  |\n| **TroubleIconFile** | ***Normal*** |  |\n| **TroubleIconFunction** | ***@function*** |  |\n| **TroubleIconInterface** | ***@lsp.type.interface*** |  |\n| **TroubleIconKey** | ***@lsp.type.keyword*** |  |\n| **TroubleIconMethod** | ***@function.method*** |  |\n| **TroubleIconModule** | ***@module*** |  |\n| **TroubleIconNamespace** | ***@module*** |  |\n| **TroubleIconNull** | ***@constant.builtin*** |  |\n| **TroubleIconNumber** | ***@number*** |  |\n| **TroubleIconObject** | ***@constant*** |  |\n| **TroubleIconOperator** | ***@operator*** |  |\n| **TroubleIconPackage** | ***@module*** |  |\n| **TroubleIconProperty** | ***@property*** |  |\n| **TroubleIconString** | ***@string*** |  |\n| **TroubleIconStruct** | ***@lsp.type.struct*** |  |\n| **TroubleIconTypeParameter** | ***@lsp.type.typeParameter*** |  |\n| **TroubleIconVariable** | ***@variable*** |  |\n| **TroubleIndent** | ***LineNr*** |  |\n| **TroubleIndentFoldClosed** | ***CursorLineNr*** |  |\n| **TroubleIndentFoldOpen** | ***TroubleIndent*** |  |\n| **TroubleIndentLast** | ***TroubleIndent*** |  |\n| **TroubleIndentMiddle** | ***TroubleIndent*** |  |\n| **TroubleIndentTop** | ***TroubleIndent*** |  |\n| **TroubleIndentWs** | ***TroubleIndent*** |  |\n| **TroubleNormal** | ***NormalFloat*** |  |\n| **TroubleNormalNC** | ***NormalFloat*** |  |\n| **TroublePos** | ***LineNr*** |  |\n| **TroublePreview** | ***Visual*** |  |\n| **TroubleSource** | ***Comment*** |  |\n| **TroubleText** | ***Normal*** |  |\n\n\u003C!-- colors:end -->\n\n\u003C\u002Fdetails>\n","Trouble.nvim 是一个用于 Neovim 的插件，旨在通过美观的列表展示代码诊断、引用、Telescope 结果、快速修复和位置列表，帮助开发者解决代码中的问题。其核心功能包括支持多种 LSP 操作如定义、类型定义、文档符号等，并能显示 Telescop 和 fzf-lua 的搜索结果。该插件提供高度可配置的视图选项，支持浮动窗口或分割窗口显示，以及聚焦和跟随光标下的项等功能，增强了开发者的编码体验。适用于需要高效处理代码错误和进行代码导航的各种编程场景中。",2,"2026-06-11 03:33:00","high_star"]