The Emacs lsp-mode client for vtsls , which is an LSP wrapper around TypeScript extension bundled with VSCode.
Add lsp-vtsls
:
;; packages.el
(package! lsp-vtsls :recipe (:host github :repo "sdvcrx/lsp-vtsls"))
;; config.el
(use-package! lsp-vtsls
:after lsp-mode)
Install vtsls
LSP:
M+x lsp-install-server
then selectvtsls
.
(use-package! lsp-vtsls
:after lsp-mode
:config
(setq
;; show all LSP doc on minibuffer
lsp-eldoc-render-all t
;; https://github.com/yioneko/vtsls#bad-performance-of-completion
lsp-vtsls-server-side-fuzzy-match t
lsp-vtsls-entries-limit 10))