-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate "$" completion for PHP and JavaScript file. :( #87
Comments
Similar issue. |
Additional report.Duplicate ScreenshottypeselectionDuplicate "$". Preparation
example.js
import Vue from 'vue';
var data = { a: 1 };
var vm = new Vue({
el: '#example',
data: data
});
vm.$e| Minimal vimrc (minimal.vimrc)" plugin (use vim-plug) {{{
call plug#begin('~/.vim/plugged')
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/asyncomplete.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
call plug#end()
" }}}
" log
let g:asyncomplete_log_file = expand('/tmp/asyncomplete.log')
"
" [LSP]
" TypeScirpt JavaScript JSX
"
" [install]
" npm i -g typescript-language-server
"
" [command]
" typescript-language-server --stdio
"
if executable('typescript-language-server')
augroup LspTypeScriptJavaScriptAndJsx
au!
au User lsp_setup call lsp#register_server({
\ 'name': 'typescript-language-server',
\ 'cmd': { server_info->[&shell, &shellcmdflag, 'typescript-language-server --stdio']},
\ 'root_uri':{server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'tsconfig.json'))},
\ 'whitelist': ['typescript', 'javascript', 'javascript.jsx']
\ })
" omnifunc
autocmd FileType typescript,javascript,javascript.jsx setlocal omnifunc=lsp#complete
" map
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> gd :<C-u>LspDefinition<CR>
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> gD :<C-u>LspReferences<CR>
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> gs :<C-u>LspDocumentSymbol<CR>
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> gS :<C-u>LspWorkspaceSymbol<CR>
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> gQ :<C-u>LspDocumentFormat<CR>
au FileType typescript,javascript,javascript.jsx vnoremap <buffer><silent> gQ :LspDocumentRangeFormat<CR>
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> K :<C-u>LspHover<CR>
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> <F1> :<C-u>LspImplementation<CR>
au FileType typescript,javascript,javascript.jsx nnoremap <buffer><silent> <F2> :<C-u>LspRename<CR>
augroup end
endif |
maamo888
changed the title
Duplicate "$" completion for PHP file. :(
Duplicate "$" completion for PHP and JavaScript file. :(
Oct 30, 2018
Can you give v2 branch a try. It is stil lat an early phase so not all the features have been ported yet. |
v2 is now merged in master. Please update to latest and give it a try again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems summary
(I'm sorry for my poor English.)
Hi, prabirshrestha
First of all, I appreciate vim-lsp, asyncomplete and related great plugins.
Duplicate "$" completion for PHP file. :(
Screenshot
list
[NG]done
$$variable2
:(Minimal vimrc (minimal.vimrc)
example.php
vim -N -u minimal.vimrc example.php
|
is cursor.Log (asyncomplete.log)
The text was updated successfully, but these errors were encountered: