-
-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration in standalone setup #154
Comments
In the standard of LSP, the server obtains the configuration through Configuration. |
Thank you for your response! I've found that writing "Lua.diagnostics.disable": [
"lowercase-global"
] to Anyway, is there a place (apart from the package.json you linked above) where we can find the list of options to configure with some description explaining them? I mean, one more or less can guess the meaning of each option and the way to set it by looking at this json file, but it's much easier if there is, for instance, a wiki page for them. But I understand it can be a big and tedious work. So it's OK if you don't have the time to write it. Thanks again! |
It's a good idea to explain the configuration options on the wiki, I will do it in these days. Thank you for your advice! |
Would love to hear details about how you set things up? I am on windows and using neovim and coc @gustavo-hms, even if not on windows, please let us know. |
Sure! Follow these steps:
For example, mine has the following json:
|
@gustavo-hms thanks for the instructions! I just tested this out locally, and when I build locally for macOS, the |
Well, the |
By the way, for those interested, I also managed to configure Kakoune with kak-lsp. You have to add the following lines to [language.lua]
filetypes = ["lua"]
roots = [".git/"]
command = "full path to lua-language-server executable"
args = ["-E", "[full path of lua-language-server directory]/main.lua"] I couldn't set |
ahhh duh, I interpreted that as the directory that directly contained the executable. I changed it and now it works fine. Thanks a ton! |
Yah I failed to get it working with coc.nvim: here is my config:
Any suggestions, thanks |
Hi, @tami5 ! I'm not on my machine right now to test your configuration, but may be you could try replacing: call coc#config('languageserver', {
\ 'lua-language-server': {
\ 'cwd': lua_lsp, with: call coc#config('languageserver', {
\ 'lua': {
\ 'cwd': lua_lsp, Tell me if it helps. |
@gustavo-hms thanks so much for taking interest in my issue. same thing, here's the output of the error message
let lua_lsp = glob('~/.local/lua-language-server')
if len(lua_lsp)
call coc#config('languageserver', {
\ 'lua': {
\ 'cwd': lua_lsp,
\ 'command': lua_lsp . '/bin/Linux/lua-language-server',
\ 'args': ['-E', '-e', 'LANG="LANG=en","', lua_lsp . '/main.lua'],
\ 'filetypes': ['lua'],
\ }
\ })
endif
|
Hi, in vim, do we still need to do the json-schema part? Here is the output of
|
Hello! How can I configure this server? For example, to set the behaviour of diagnostics? I couldn't find any documentation for it.
I'm on a standalone setup, using it with
coc
plugin forneovim
.Thanks!
The text was updated successfully, but these errors were encountered: