-
-
Notifications
You must be signed in to change notification settings - Fork 15
Neovim LSP support #20
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
Comments
Only if the vim LSP client supports node-ipc communication.. we don't have a stdout, nor socket option. Use the settings as stated in the coc vim config part in the README and let me know how it went! |
it just supports stdout AFAIK. |
yes, i try to look on lspconfig in the repo it seems only support stdout. well i'm going to use coc for now, btw thank for response 😄 |
Just for your information you can now configure the builtin LSP thanks to rescript-lang/rescript-vscode#88
local lsp = require'lspconfig'
local configs = require'lspconfig/configs'
local rescriptLspPath = '~/repos/rescript-vscode/server/out/server.js'
if not lsp.rescriptlsp then
configs.rescriptlsp = {
default_config = {
cmd = {'node', rescriptLspPath, '--stdio'};
filetypes = {"rescript"};
root_dir = lsp.util.root_pattern('bsconfig.json');
settings = {};
};
}
end
lsp.rescriptlsp.setup{
-- with your configurations
}
|
rescript supported is added to nvim-lspconfig so assuming you have latest lspconfig version setup is trivial require'lspconfig'.rescriptls.setup {
cmd = {
'node',
'<path to server.js>',
'--stdio'
}
}
|
For the third day I have been trying to integrate Rescript support on pure LSP (Not COC!) In neovim.
Can anyone help? |
@rocinant3 can you try pointing to server with absolute path? |
@amiralies, seems works!, thank you But what about auto-completion? But in this case nvim crashed with error:
|
I'm not sure if its related with rescript's config. |
@rocinant3 can I ask how? |
@barkanido It depends on your config. do you have exact same problem as above? |
Eventually it was a bug in the lsp client that was fix fixed |
Sorry for interrupting you. I missed some basic stuff by mistake. It works perfectly! Thank you for great work! |
Hi, I currently using neovim nightly build.
can i use this plugin with https://github.com/neovim/nvim-lspconfig ?
Thanks
The text was updated successfully, but these errors were encountered: