Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

server command should be a function beside array #12

Open
prabirshrestha opened this issue Nov 23, 2016 · 4 comments
Open

server command should be a function beside array #12

prabirshrestha opened this issue Nov 23, 2016 · 4 comments

Comments

@prabirshrestha
Copy link
Contributor

prabirshrestha commented Nov 23, 2016

For typescript I would want to run the server found in node_modules directory. This means the cmd path needs to be calculated dynamically.

let g:langserver_executables = {}
let g:langserver_executables.typescript = { 'cmd': function('s:get_langserver_for_typescript') } 
@tjdevries
Copy link
Owner

I think this is already possible. Just have the function return a list and it should work fine.

@tjdevries
Copy link
Owner

Oh, nevermind, it won't get executed. I will add this :)

@tjdevries
Copy link
Owner

With 3c94634, I think I have added the capability.

I have updated the doc to correspond with this. Let me know if that was what you were expecting.

@tjdevries
Copy link
Owner

@prabirshrestha did you get a chance to see if this works for you? I will close it if it does.

Thanks.

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

No branches or pull requests

2 participants