Skip to content

tbodt/js-langserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-langserver dependencies Status

A simple language server for JavaScript, powered by ESLint and Tern.

I made this because sourcegraph/javascript-typescript-langserver is really bad at untyped JavaScript. It uses the intellisense library that's part of TypeScript as a backend, which makes it really good at TypeScript (probably, I've never used it for TypeScript) but much worse than Tern at regular JavaScript.

Using the thing

I'm a vim user, so I just do this:

let g:LanguageClient_serverCommands = {
    \ 'javascript.jsx': ['js-langserver', '--stdio'],
    \ }

If you want to use VSCode, I think you're going to have to fork the project and add a 20-line VSCode extension. Not really sure how VSCode works.

Obligatory stupid arbitrary feature matrix table thing

js-langserver javascript-typescript-langserver vscode-eslint vscode-ternjs
Lines of code (according to tokei) 153 8,618 1,787 326
GitHub stars
Tern yes, but no completions (???)
ESLint

VSCode's builtin JavaScript support is not in here because I can't figure out how to use it with vim. vscode-ternjs is here despite having 1 GitHub star because it is literally the only language server I could find that used Tern.

About

A simple language server for JavaScript, powered by ESLint and Tern.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •