LanguageClient-neovim icon indicating copy to clipboard operation
LanguageClient-neovim copied to clipboard

Equivalent setup steps for init.lua vs init.vim

Open jeffsaremi opened this issue 1 year ago • 1 comments

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

jeffsaremi avatar Aug 08 '22 05:08 jeffsaremi

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?

arafatamim avatar Sep 18 '22 16:09 arafatamim