0

I'm looking for a plugin which exhibits the following behavior:

  1. When the cursor is at a variable, a pop-up should show its data type.
  2. When the cursor is at a function, a pop-up should show what arguments the function takes.
  3. When the cursor is at an object/class, a pop-up should show what class the subclass/instance belongs to and/or its constructor functions` arguments.

I've seen (1) and (2) in Visual Studio Code, not sure if there's something for (3).

Example of (1):

// This is in C++
// Cursor at '^'

#include <string>

string testing = "qwerty";
                    ^
                  { const char*[] }

testing += "asdfgh";
  ^
{ string }

Examples of (2):

// This is in C
// Cursor at '^'

int myfunc(int x, int y)
{
   /* Some code */
}

int testing = myfunc(
                     ^
          { myfunc( int x, int y ) }
# This is in Python
# Cursor at '^'

def myfunc(x, y, mag):
   return (x+y)*mag

testing = myfunc(
                 ^
        { myfunc(x, y, mag) }
  • 1
    coc.nvim support 2 and at least last part of 1. – dedowsdi Apr 22 at 4:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.