Add basic LSP support

Still needs to be documented, but includes support for the following
languages:

+ C/C++/ObjC
+ Go
+ Java
+ Javascript
+ OCaml
+ PHP
+ Python
+ Ruby
+ Scala
+ Swift
+ HTML/CSS

Relevant to #460, #716, #1186
This commit is contained in:
Henrik Lissner 2019-02-21 16:08:27 -05:00
parent d7308799f6
commit cb923eadcc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
25 changed files with 182 additions and 57 deletions

View file

@ -122,7 +122,12 @@
;;
;; Tools
(when (featurep! +lsp)
(add-hook! (js2-mode rjsx-mode typescript-mode) #'+lsp|init))
(def-package! tide
:unless (featurep! +lsp)
:defer t
:init
;; Don't let hard errors stop the user from opening js files.

View file

@ -1,17 +1,21 @@
;; -*- no-byte-compile: t; -*-
;;; lang/javascript/packages.el
;; major modes
(package! coffee-mode)
(package! eslintd-fix)
(package! js2-mode)
(package! rjsx-mode)
(package! typescript-mode)
;; tools
(package! eslintd-fix)
(package! js2-refactor)
(package! nodejs-repl)
(package! rjsx-mode)
(package! skewer-mode)
(package! tide)
(package! typescript-mode)
(package! npm-mode)
(package! skewer-mode)
(when (featurep! :feature lookup)
(package! xref-js2))
(unless (featurep! +lsp)
(package! tide))