Closed wbthomason closed 1 month ago
any updates?
I'v found the stdFolder
option in LuaLanguageServer.kt
, but it does not work:
call coc#config('languageserver.EmmyLua', {
\ 'command': &shell,
\ 'args': [&shellcmdflag, 'java -cp EmmyLua-LS-all.jar com.tang.vscode.MainKt'],
\ 'filetypes': ['lua'],
\ 'initializationOptions': {
\ 'stdFolder': 'path_to_this_repo/std/Lua54',
\ },
\ })
EDIT:
stdFolder
is the solution, but you must use file://
as prefixI just wanted to post that I am interested in this as well and would like for the server to handle the built-in modules. I am very appreciative of this project and all of the hard work this team has done. Thank you.
there's a workaround, copy the contents of https://github.com/EmmyLua/IntelliJ-EmmyLua/tree/master/src/main/resources/std/Lua54 to your project (or to one of your project's sub dir)
but obviously that's not very convenient
any updates?
I'v found the
stdFolder
option inLuaLanguageServer.kt
, but it does not work:
You need to specify it as a URI, e.g.
"stdFolder": "file:///C:/EmmyLua-LanguageServer/res/std"
"stdFolder": "file:///C:/EmmyLua-LanguageServer/res/std"
it works!
How do I pass stdFolder to emmy in spacemacs on macos?
use emmylua-analyzer instead of this
I cannot get any completions from built-in modules (e.g.
os
,io
, etc.). Completion works for tables I define, and most of the rest of the LS functionality works fine, so I don't think I have a configuration error. All that seems to fail is getting completions from these built-in modules. I'm using coc.nvim with the instructions given for EmmyLua-LS here: https://github.com/neoclide/coc.nvim/wiki/Language-servers#lua - am I missing something? Thanks!