-
-
Notifications
You must be signed in to change notification settings - Fork 386
Description
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Other
Expected Behaviour
I encountered a weird issue while setting up my NeoVim lua configuration. In a file which configures "nvim-dap" plugin, I import using require 'dap'. But the server detects another file named dap.lua in a different plugin folder which, as far as I know, is not on the runtime search path. This ends up giving me the wrong completions and suggestions, since it is loading the wrong file / table. The desired table is the second suggestion in the list.
I expect the server to output the second file as the first option, since it is in a standard runtime path, as seen in the image below.
Actual Behaviour
As you can see, the second (correct) result's search path is standard, whereas first result's search path is unexpected.
I wanted to know if there is any way I can check where these search paths are sourced from, because I did not provide any such path lua/mason/ui/components/help/?.lua in my config. The language server works flawlessly except for this problem.
Reproduction steps
- I just triggered the go to definition on the word under the cursor.
Additional Notes
No response
Log File
No response
