Skip to content
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

Equivalent setup steps for init.lua vs init.vim #1254

Open
jeffsaremi opened this issue Aug 8, 2022 · 1 comment
Open

Equivalent setup steps for init.lua vs init.vim #1254

jeffsaremi opened this issue Aug 8, 2022 · 1 comment

Comments

@jeffsaremi
Copy link

What is the equivalent of this if I'm using init.lua file:

let g:LanguageClient_serverCommands = {
    \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
    \ 'javascript': ['/usr/local/bin/javascript-typescript-stdio'],
    \ 'javascript.jsx': ['tcp://127.0.0.1:2089'],
    \ 'python': ['/usr/local/bin/pyls'],
    \ 'ruby': ['~/.rbenv/shims/solargraph', 'stdio'],
    \ }

thanks

@arafatamim
Copy link

vim.g["LanguageClient_serverCommands"] = {
  rust = { "~/.cargo/bin/rustup", "run", "stable", "rls" },
  javascript = { "/usr/local/bin/javascript-typescript-stdio" },
  ["javascript.jsx"] =  { "tcp://127.0.0.1:2089" },
  ...
}

Any reason you're using this over the builtin LSP client btw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants