Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

billyvg/jsimport.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No longer maintained

Use this instead: https://github.com/Galooshi/import-js

jsimport.nvim (dead) Build Status codecov

jsimport is a NodeJS remote plugin for Neovim that provides autocompletion for javascript imports. Autocompletion requires deoplete.

Features

features

Installation

Use a plugin manager (vim-plug, Neobundle, dein, etc). neovim/node-host requires running npm install. Or manually check out the repo and put the directory to your vim runtime path.

vim-plug

Plug 'billyvg/node-host', { 'do': 'npm install' }
Plug 'billyvg/jsimport.nvim'

Updating

Update plugins via git or plugin manager (i.e. with vim-plug: :PlugUpdate). Then :UpdateRemotePlugins and finally restart Neovim.

Prerequisites

Tested on:

  • macOS 10.11.6, Neovim 0.1.7, Node.js 6.9.x

How to use

This is in a very early state, so you'll have to manually run this vim command first in order to generate the source file for deoplete (as well as some context information when finishing an autocomplete)

:JsImportCache

After the file is generated, you will be able to autocomplete keywords in js and jsx files. After the autocomplete finishes it will also insert an ES6 import at the top of the file. Customization is currently limited.

Variables

let g:jsimport#reporting = 1

Turns error reporting to Sentry on. Please view source, we try not to collect any user information. This is opt-in so if you want to help improve this, please turn it on!

About

Auto-insert import statements when autocompleting keywords for neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published