Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Typescript tooling for Neovim

NotificationsYou must be signed in to change notification settings

ncm2/nvim-typescript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim language service plugin for typescript

Installation

First make sure you have Neovim 0.2.1 or highter.This includes the node-host that is required for this plugin.

You will need a global install of the neovim client as well.This will make sure that neovim and node can communicate.

npm install -g neovim

You might want to also have typescript install globally.By default, this plugin will look in yournode_modules folder first for typescript, but if that does not exist, it will use the global install.

npm -g install typescript

Then add the following plugins. This example uses Dein.vim, but any plugin manager will work.

" Dein # REQUIRED: Addasyntaxfile. YATSis the bestcalldein#add('HerringtonDarkholme/yats.vim')calldein#add('mhartington/nvim-typescript', {'build':'./install.sh'})" For async completioncalldein#add('Shougo/deoplete.nvim')" For Denite featurescalldein#add('Shougo/denite.nvim')" Vim-Plug # REQUIRED: Addasyntaxfile. YATSis the best  Plug'HerringtonDarkholme/yats.vim'  Plug'mhartington/nvim-typescript'" For async completion  Plug'Shougo/deoplete.nvim'" For Denite features  Plug'Shougo/denite.nvim'" Enable deoplete at startupletg:deoplete#enable_at_startup=1

Limitation

If no completion is happening, please be sure to have a Typescript syntax file in your RTP. Neovim does not include a default syntax for Typescript, so be sure to include one. A popular syntax file for Typescript isyats.vim. Running nvim-typescript with no syntax file could lead to unexpected behavior.

Open Open Source, or how to make this everyone's code

If you happened to build something and would love to make a PR, I would be more than happy to add contributors.If something you do add happens to get merged (most likely it will 😁 ) you'll get a collaborator request. This has worked out very well in the Node community and I want it to happen here. This is as much my code as it is your code.

See:

Debugging

There are a few things you'll have to modify in your nvim config in order to be able to effectively work on this plugin:

calldein#local('~/GitHub', {},['nvim-typescript'])let$NVIM_NODE_LOG_FILE='nvim-node.log'let$NVIM_NODE_LOG_LEVEL='warn'

This plug will try to log most things to warn as the node-client logs a lot of verbose output to debug/info.You will now be able totail -f /PATH_TO/nvim-node.log, and see debug output appear.

TODOS

If there's a feature that you would like to see, feel free to open an issue or send a PR.

About

Typescript tooling for Neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript50.2%
  • TypeScript35.6%
  • Vim Script9.5%
  • Python4.6%
  • Shell0.1%

[8]ページ先頭

©2009-2025 Movatter.jp