Giter Site home page Giter Site logo

Comments (5)

jcs090218 avatar jcs090218 commented on August 23, 2024

It depends on the implementation. I cannot guarantee this will be merged, but feel free to open PR so other maintainers can review it.

from lsp-ui.

rickalex21 avatar rickalex21 commented on August 23, 2024

I too like the way neovim displays all diagnostics. Is there a way to view the doc all the time
without having to hover?

On neovim it's there all the time, on Emacs I have to put my cursor on it to see the warning
or error.

from lsp-ui.

zjp avatar zjp commented on August 23, 2024

It depends on the implementation. I cannot guarantee this will be merged, but feel free to open PR so other maintainers can review it.

Sorry, I didn't mean to imply that my changes would just be accepted methodology and sight unseen and I can see how my post came off that way. I should have just actually stated what I was doing so I could get feedback on it as well, but I was trying to save everyone time and quickly check to see if the change would be directionally acceptable for the project or not. Sometimes proposals aren't, like gaps in i3!

My current idea is to check whether a new setting, lsp-ui-sideline--show-all-diagnostics, is t at the end of lsp-ui-sideline and if it is, call a new function, lsp-ui-sideline--run-all, which would loop over all flycheck errors on screen (not in the entire buffer), move the point to that line, and call lsp-ui-sideline--run on them.

One thing I'm stuck on right now is that it doesn't seem possible to give lsp-ui-sideline--find-line an offset that would make it place diagnostics on the same line as the point, and offset diagnostics on lines the point isn't on look a little ridiculous.

from lsp-ui.

wjoel avatar wjoel commented on August 23, 2024

I'm surprised this isn't already an option. It would be very much appreciated - let me know if I can help out by testing anything, @zjp.

Related to (I think?) #723.

from lsp-ui.

zjp avatar zjp commented on August 23, 2024

Yes, that's exactly the feature I'm asking for. Sorry for making a duplicate ticket, I'll close this one and continue discussion there. If you'd like to see what I've done already, you can see my WIP at https://github.com/zjp/lsp-ui/tree/show-all-diagnostics

Current issues:

If you have hl-line mode on the hightlight disappears between the end of the line you're on and the diagnostic

If a line has multiple diagnostics to show, one diagnostic will be shown and the rest of the diagnostics disappear (you can see this in action by bringing line 372 of lsp-ui-sideline.el into view).

Not every motion seems to update the diagnostics.

from lsp-ui.

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.