- Notifications
You must be signed in to change notification settings - Fork0
ncm2/nvim-typescript
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
nvim language service plugin for typescript
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
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.
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:
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.
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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- JavaScript50.2%
- TypeScript35.6%
- Vim Script9.5%
- Python4.6%
- Shell0.1%
