You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I successfully installed jsctags, tern_for_vim and autocomplete now works and even code jumping via ctrl-] . But I have issues with navigation and jumping from 'import strings'.
Code jumping from from import * as types from '../types' do not work. But go to file via gf works. It just jumps to line beginning. The same is for import {LOGIN_REQUEST} from './types.js' - it does not work.
But code completion works for types works:
Next files is index.js
import * as types from './types'
import * as actions from './actions'
const {login, logout, notexist_method} = actions
let new_var = login.wrong_method
Code jumping for two imports and for object destruction does not work too. It jumps to the beginning of word.
Also I would like syntastic plugin (works via eslint in my plugin) mark somehow that notexist_method is not valid object. And notexist_method also.
notexist_method method must not be in auto completion list.
This is how IDEA works:
So guys, how to achieve that? May syntastic linting is not related, but code navigation must work, because it uses 'tern'.
I successfully installed
jsctags
,tern_for_vim
and autocomplete now works and even code jumping viactrl-]
. But I have issues with navigation and jumping from 'import strings'.Suppose I have these files:
types.js
actions.js
Code jumping from from
import * as types from '../types'
do not work. Butgo to file
viagf
works. It just jumps to line beginning. The same is forimport {LOGIN_REQUEST} from './types.js'
- it does not work.But code completion works for
types
works:Next files is index.js
Code jumping for two imports and for object destruction does not work too. It jumps to the beginning of word.
Also I would like
syntastic
plugin (works viaeslint
in my plugin) mark somehow thatnotexist_method
is not valid object. Andnotexist_method
also.notexist_method
method must not be in auto completion list.This is how IDEA works:
So guys, how to achieve that? May syntastic linting is not related, but code navigation must work, because it uses 'tern'.
Here is my
.tern-project
fileAnd this is generated tag file (via
vim-easytag
)The text was updated successfully, but these errors were encountered: