Giter VIP home page Giter VIP logo

Comments (3)

folke avatar folke commented on July 20, 2024

You want to go to the location of the next/previous trouble item?

You can do this by first advancing the current item and then triggering a jump, like this:

:lua require("trouble").action("next"); require("trouble").action("jump")

If you just want to move to the prev/next diagnostics item, then I would recommend you to use the built-in LSP functionlaity. See https://github.com/neovim/nvim-lspconfig#keybindings-and-completion

The best way to get diagnostic counts is to use the built-in vim.lsp.diagnostic.get_count API, or use vim.lsp.diagnostic.get_all and count the things you need.

from trouble.nvim.

windwp avatar windwp commented on July 20, 2024

:lua require("trouble").action("next"); require("trouble").action("jump")
It work but if It jump to a fold . It will close fold too.
I only want to jump to a next todo :)

How about to display the todo total item.

image

from trouble.nvim.

folke avatar folke commented on July 20, 2024

I just added this. Please refer to the documentation to use it

from trouble.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.