CMP doesn't recognise variable as object instance #1895
Unanswered
AntoninoIemmolo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use cmp for some object oriented programming in LUA. I'm using lsp as language server and these are my pretty basic configuration:
LSP config.
cmp config:
That said, when I type something like "AIRBASE:" (assuming AIRBASE is an object declared in an other Lua file) I get the all the method and function associated with AIRBASE as shown in the first picture below.
But, and here comes the problem, when I type something a little bit fancier like
cmp doesn't give me the method anymore even if FindByName() is a function which is supposed to return and AIRBASE istance.
Note that if I write:
still gives me al the method associated with AIRBASE
Beta Was this translation helpful? Give feedback.
All reactions