Code Monkey home page Code Monkey logo

Comments (2)

jose-elias-alvarez avatar jose-elias-alvarez commented on May 20, 2024

Your understanding is correct, though we're still missing a few pieces necessary to make something like this possible. I know absolutely nothing about cscope, but based on your description and using references as an example, the flow would be like this:

  1. Neovim's LSP client sends a request for references to all attached language servers that support the method;
  2. null-ls runs the command line program with the specified arguments (or reads the database, if you're able to do that through Lua / luv) and gets its output;
  3. null-ls parses the output and restructures it into the correct LSP-friendly format; and
  4. The null-ls handler for the method sends it back to to the LSP client, which displays it to the user.

At the moment, though, null-ls only handles diagnostics, formatting, and code actions. The main task (apart from getting and parsing cscope output) would be to build handlers for the methods we don't currently support, but the core structure should be flexible enough to handle it.

I haven't heard of anyone working on this, and I'm too ignorant about cscope to do anything myself, but I'm happy to provide full support for anyone who wants to take it on, especially since it sounds like a cool project that would really showcase what null-ls can do.

from null-ls.nvim.

jose-elias-alvarez avatar jose-elias-alvarez commented on May 20, 2024

Also, I don't know how much work it would take to parse the cscope output / database, but I'll also mention that I feel that this would be more appropriate as a plugin that integrates with null-ls and not something to directly include here.

from null-ls.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.