#deno #tool #cli #command-line-tool #json #user #complition

bin+lib deno-ls-init

A cli tool to enable code complition for deno project

2 unstable releases

0.2.0 May 9, 2020
0.1.0 May 9, 2020

#112 in #deno

MIT license

10KB
272 lines

deno-ls-init (denolsinit)

denolsinit is a cli tool to create (edit) tsconfig.json that enables code completion for deno.

If you use VSCode, you should use the Deno extension.

This tool mainly focuses on Emacs users.

However, since this tool only rewrites tsconfig.json, I think it's usable with any IDEs that can use the typescript language server (which references tsconfig.json).

Usage

Installing

Emacs user:

  • Install node.js and Rust
  • Install yarn
  • Install and enable Tide package

If you're a Doom Emacs user, just enable lang: javascript in setting file (init.el) and run doom refresh.

  • cargo install deno-ls-init

Enabling code completion for deno

  • cd to the deno project root directory.
  • denolsinit

That's all.

Dependencies

~0.7–1.6MB
~27K SLoC