Giter Club home page Giter Club logo

Comments (3)

9mm avatar 9mm commented on September 21, 2024

I actually was looking at lualine solutions but i dont want it to appear in the actual lualine, but below, much simpler, like this: (this is vim-ale)

This is as close as I can get which is 👎🏼

from lsp-zero.nvim.

VonHeikemen avatar VonHeikemen commented on September 21, 2024

I'm still not sure what you want. But you can get the diagnostics using the function vim.diagnostic.get.

If you have an error/warning you can print it in the message area.

lua print(vim.diagnostic.get(0)[1].message)

This will get the message of the first diagnostic in the buffer. If there isn't any diagnostic you'll get a lua error, because you will be trying to access the message property of an "empty value".

from lsp-zero.nvim.

9mm avatar 9mm commented on September 21, 2024

Interesting, yes thats basically what I'm looking for. Now I suppose the question is, how would I make occur only for the currently focused line with the cursor?

I'll just keep searching. Thanks for your help!

from lsp-zero.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.