Giter VIP home page Giter VIP logo

Comments (7)

snezhniylis avatar snezhniylis commented on July 20, 2024 1

@zalegrala You can take a look at #115. I documented how to use next and previous functions in there. This also applies to the current implementation, except opts passed to these functions.

from trouble.nvim.

edte avatar edte commented on July 20, 2024 1

thx,it's work fine

vim.api.nvim_set_keymap("n", "<a-2>", "<esc><cmd>lua vim.diagnostic.goto_prev()<cr>", {}) -- pre error
vim.api.nvim_set_keymap("n", "<a-3>", "<esc><cmd>lua vim.diagnostic.goto_next()<cr>", {}) -- next error

from trouble.nvim.

liketoeatcheese avatar liketoeatcheese commented on July 20, 2024 1

Hi all. Does anybody know how would I jump to the next error within the workspace without the need to open trouble first? Or jump to the next, and then the trouble window pops up?

from trouble.nvim.

folke avatar folke commented on July 20, 2024 1

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

from trouble.nvim.

zalegrala avatar zalegrala commented on July 20, 2024

How does one use the next previous functions?

from trouble.nvim.

edte avatar edte commented on July 20, 2024

could someone please give an example of binding a shortcut key?

from trouble.nvim.

zalegrala avatar zalegrala commented on July 20, 2024

I use :lua vim.diagnostic.goto_next()<cr>. I have zero idea if this is related to this plugin or not.

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.