nvim-langserver-shim icon indicating copy to clipboard operation
nvim-langserver-shim copied to clipboard

server command should be a function beside array

Open prabirshrestha opened this issue 9 years ago • 4 comments

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') } 

prabirshrestha avatar Nov 23 '16 09:11 prabirshrestha

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

tjdevries avatar Nov 23 '16 13:11 tjdevries

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

tjdevries avatar Nov 23 '16 13:11 tjdevries

With 3c946346d5bafe5e1cf7c63c7e51ec9be40bef22, 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 avatar Nov 23 '16 18:11 tjdevries

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

Thanks.

tjdevries avatar Nov 29 '16 15:11 tjdevries