Code Monkey home page Code Monkey logo

completeparameter.vim's Introduction

Hi there, I'm tenfyzhong 👋

tenfy's github stats Top Langs

completeparameter.vim's People

Contributors

danihodovic avatar gitter-badger avatar s97712 avatar tenfyzhong avatar zhaoxuyll avatar zzhirong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

completeparameter.vim's Issues

python parser bug if the parameters has `()`

for example:

pexpect.interact(self, escape_character=chr(29),             input_filter=None,
output_filter=None)

It will get the text: pexpect.interact(self, escape_character=chr(29)

expect: pexpect.interact(escape_character, input_filter, output_filter)

CompleteParameter fails with named function parameters using Tern

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing you issue:

  • I have read and understood CompleteParameter's README,
    especially the Frequently Asked Questions section.
  • I have searched CompleteParameters's issue tracker to find issues similar
    to the one I'm about to report and couldn't find an answer to my problem.
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have attached the contents of log follow the steps.
    1. Execute let g:complete_parameter_log_level = 1.
    2. Replay you action.
    3. Execute messages.
    4. Copy the output and place it to next section.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key
questions:

  • What did you do?

CompleteParamter fails with named function parameters using Tern when an object is being passed in as an argument. Instead of inserting the entire object, it inserts the object properties as arguments.

# Completion for Hapi.server()
Hapi.Server               fn(options: {compressible: bool, extensions: [?], register: ?, source: string, type: string})  

What's inserted:

Hapi.Server(options, extensions, register, source, type)

What should be inserted:

Hapi.Server({compressible, extensions, register, source, type})  

https://asciinema.org/a/VdIW3cTfN9gXorQf389cW6P7r

Include description of a minimal test case, including any actual code required
to reproduce the issue.

  • What did you expect to happen?

Include description of the expected behaviour.

  • What actually happened?

Include description of the observed behaviour, including actual output,
screenshots, etc.

Diagnostic data

Language

The program language you are using.

Output of vim --version

Place the output here, or a link to a gist.

Output of message

Place the output here, or a link to a gist.

OS version, distribution, etc.

Include system information here.

Support for Completor.vim

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • [X ] Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

Messages

Hi Tenfy
For c/c++ and python embedded development I use a lightweight toolchain based on Vim8.1, Make, Clang, Ale, Ultisnips, and Completor.vim .
I prefer Completor.vim because it is easy to install / configure, performant and usable for a lot of languages.

I installed CompleteParameter.vim - and surprise the placeholder generation was not triggered from completor's pum.

Wouldn't it be worth to think about adding completor to the list of CompleteParameter supported completors?
I opened a similar issue at Completor.vim.

Let me know how I can help!

format of the error message.

when edit vim file, I just see error like:

ERROR:1507380959219086: ftfunc check failed

it take me too long time to find out what the error is, and which plugin it comes from, I this the message format of the plugin should be improved. maybe the message should be:

[ 14:21:22 ]  [ info  ] [ CompleteParameter.vim ] content of info message
[ 14:21:22 ]  [ warn  ] [ CompleteParameter.vim ] content of info message
[ 14:21:22 ]  [ error ] [ CompleteParameter.vim ] content of info message

Support c/c++ macro parameter completion

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Support c++ macro parameter completion

Messages

It will selection function name when use `->` to call the function.

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

  • What did you do?
class MyClass
  {
  public:
    void func(int n0, int n1, int n2)
      {
      }
  };

int main(int argc, char *argv[])
  {
      MyClass *o = new MyClass;
    o->func(n0, n1, n2)
      return 0;
  }

call goto previous paraneter when on n0

  • What did you expect to happend?

stop select

  • What actually happened?

selected func

Messages

extra letter after complete

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe: HEAD

Minimal Configuration

function! CompleteParamFix()
    call feedkeys("\<c-y>", 't')
    return complete_parameter#pre_complete('')
endfunction
inoremap <silent><expr> <cr> pumvisible() ? CompleteParamFix() : "\<c-g>u\<cr>"

Issue Details

  • What did you do?

try complete this code arround p->f1(), using <cr>

class MyClass {
public:
    virtual void f0(int n0, int n1) {}
    virtual int f1(void) {}
};
void main(void) {
    MyClass *p = new MyClass();
    p->f0(p->f1(), 0);
}
  • What did you expect to happend?

p->f0(p->f1(), 0);

  • What actually happened?

p->f0(p->f1()n, 0);
extra n shows, n may be different letter upon different case

Messages

插件没有正常工作

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe: 最新版本

Minimal Configuration

"CompleteParameter
inoremap ( complete_parameter#pre_complete("()")
let g:complete_parameter_py_keep_value = 1
smap (complete_parameter#goto_next_parameter)
imap (complete_parameter#goto_next_parameter)
smap (complete_parameter#goto_previous_parameter)
imap (complete_parameter#goto_previous_parameter

Issue Details

YCM 自动补全跳转都正常,但是自动补全后按 ( 键 CompleteParameter 没有输出。
另外,CompleteParameter 和 'jiangmiao/auto-pairs' 冲突。禁用后映射正常,但无参数补全。
Python3.7
Vim 8.1.0500

Messages

[CompleteParameter][09:20:02][TRACE][1542072002977647] s:completed_word: mkdir
[CompleteParameter][09:20:02][TRACE][1542072002977647] select_complete_word: mkdir
[CompleteParameter][09:20:02][TRACE][1542072002977647] {'word': 'mkdir', 'menu': 'def mkdir', 'user_data': '0', 'info': 'Create a directory.^@^@if dir_fd is not None, it should be a file desc
riptor open to a directory,^@ and path should be relative; path will then be relative to that directory.^@dir_fd may not be implemented on your platform.^@ If it is unavailable, using it wi
ll raise a NotImplementedError.^@^@the mode argument is ignored on Windows.', 'kind': 'f', 'abbr': ''}
[CompleteParameter][09:20:02][DEBUG][1542072002977647] ['()']
[CompleteParameter][09:20:02][TRACE][1542072002977647] content:[os.mkdir] current_col:8, left:[os.mkdir], right:[]
[CompleteParameter][09:20:02][TRACE][1542072002977647] content: os.mkdir()
[CompleteParameter][09:20:02][TRACE][1542072002977647] current_col: 8
[CompleteParameter][09:20:02][TRACE][1542072002977647] content:[os.mkdir()],current_col:9,word_begin:10,word_end:10
[CompleteParameter][09:20:02][TRACE][1542072002977647] word_len:0
[CompleteParameter][09:20:02][TRACE][1542072002977647] keys: ()^[^[08la<80>kr"Plug

I haven't receive registration Key from vim

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing you issue:

  • I have read and understood CompleteParameter's README,
    especially the Frequently Asked Questions section.
  • I have searched CompleteParameters's issue tracker to find issues similar
    to the one I'm about to report and couldn't find an answer to my problem.
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have attached the contents of log follow the steps.
    1. Execute let g:complete_parameter_log_level = 1.
    2. Replay you action.
    3. Execute messages.
    4. Copy the output and place it to next section.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key
questions:

  • What did you do?

Include steps to reproduce here.

Include description of a minimal test case, including any actual code required
to reproduce the issue.

  • What did you expect to happen?

Include description of the expected behaviour.

  • What actually happened?

Include description of the observed behaviour, including actual output,
screenshots, etc.

Diagnostic data

Language

The program language you are using.

Output of vim --version

Place the output here, or a link to a gist.

Output of message

Place the output here, or a link to a gist.

OS version, distribution, etc.

Include system information here.

Typescript for Javascript files

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

tsuquyomi supports the option to use it for javascript as well. (let g:tsuquyomi_javascript_support = 1)
But CompleteParameters javascript implementation can't handle this.
I have a fork where I just overwrite the filetype variable to typescript cmp#complete and then it works fine. But this isn't really a nice solution.
Do you think it makes sense to support this?

Thanks

Select one more char when selection is exclusive

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

  • What did you do?

When selection is exclusive, the last character is not included in an operation.
So should select one more character when selection is exclusive.

  • What did you expect to happend?
  • What actually happened?

Messages

Cannot work with Python

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YCM: d0c6b6186e7a9ab7d5e770add3079200a518d908

Minimal Configuration

oremap ( complete_parameter#pre_complete("()")
smap (complete_parameter#goto_next_parameter)
imap (complete_parameter#goto_next_parameter)
smap (complete_parameter#goto_previous_parameter)
imap (complete_parameter#goto_previous_parameter)

set cmdheight=2

Issue Details

type ( follow function name should show function signature

Messages

[FeatureRequest] fallback to generic auto detect if filetype not configured

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion

Issue Details

most of langs and complete engines have similar v:completed_item, I think it's possible to supply a generic fallback if filetype not configured, or if configured filetype has no param match

here's a sample for my case:

{'word': 'Show', 'menu': 'void Show(string text, int duration = 3000) [OS]', 'user_data': '{"cid":1588229487,"source":"OmniSharp","index":7}', 'info': '', 'kind': '', 'abbr': 'Show'} 

parse pattern sample: (may be abbr/info/menu in v:completed_item)

ReturnType<P0, P1> FuncName<P0, P1>(
    ref ParamType0<P0, P1> p0,
    ParamType1 const &p1 = DefaultValue,
    ...)

Cpp could not include default parameter

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

e59e3af

Minimal Configuration

Issue Details

  • What did you do?

The completion will include default values in cpp filetype.

  • What did you expect to happend?
  • What actually happened?

Messages

Suggestion: could this plugin act like code_complete

Awesome. It works well.

an example(C source):
printf| and trigger ycm, then it shows
printf( const char *restrict __format, ... ).
then we do parameter_complete,
printf(constchar*__format, ...) with SELECT-MODE on constchar*__format.
could this be something like

printf(`<const char *restrict __format>`, `<...>`)

'`<' and '>`' are the keywords we could use to search and jump.

Can't completer paramter after i upgrade Youcompleterme .

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

Messages

my system:
os: debian bulleye (linux)
language: c
totay , I upgrade Youcompleteme to the new editor,
after this , my completerparamter.vim 's can't work.
Please test ! thank for you help.

How can I use 'Tab' and 'C-Tab' to switch choosing parameters

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Dear tenfyzhong, thanks for your great amazing plugin.

Is it possible to use 'Tab' and 'C-Tab' to switch choosing parameters instead of 'C-j' and 'C-k', how should I config? setting as below is invalid:
imap (complete_parameter#goto_next_parameter)
imap (complete_parameter#goto_previous_parameter)
Sine in this scenario using 'Tab' is more sensible, just like other ide, editor or shell does, and another reason is I have mapped 'c-j' as as same as a shell.

Thanks!

Arguments Not Shown For Unkown Reason

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Deoplete.nvim: a5ac69adb4ca5fae12e2f07a07c934213248779a
Deoplete-jedi: 583ee29a0a0fe6206f3f106b8866ff2b663fde74

Minimal Configuration

let g:complete_parameter_log_level = 0

imap <expr> (
            \ pumvisible() ?
            \ complete_parameter#pre_complete('()') :
            \ "\<Plug>delimitMate("

nmap <C-l> <Plug>(complete_parameter#goto_next_parameter)
imap <C-l> <Plug>(complete_parameter#goto_next_parameter)

nmap <C-h> <Plug>(complete_parameter#goto_previous_parameter)
imap <C-h> <Plug>(complete_parameter#goto_previous_parameter)

Issue Details

I try to get this plugin working. As in #37 I'm also using DelimitMate. Therefore I took the presented solution with the <expr> mapping. I can confirm, that this mapping is active with imap (. The expression work as expected, but I get no arguments. If I try to jump to the next or previous argument also the logging output appears without any effect.
The code I use as example is a example.py:

def my_example_function(a, b):
    return a + b

test = my_example_funct...

Please ask if you need any more information. I rly rly like to use this plugin!

Messages

[CompleteParameter][14:51:34][TRACE][732004105] s:completed_word:
[CompleteParameter][14:51:34][TRACE][732004105] select_complete_word: my_example_funct
[CompleteParameter][14:51:34][TRACE][732004105] ^P()<80>kl
match 2 of 2
[CompleteParameter][14:51:37][TRACE][3490999488] content:[test = my_example_function()],current_col:27,word_begin:28,word_end:28
[CompleteParameter][14:51:37][TRACE][3490999488] word_len:0
[CompleteParameter][14:51:38][TRACE][4400979381] content:[test = my_example_function()],current_col:28,word_begin:27,word_end:27
[CompleteParameter][14:51:38][TRACE][4400979381] word_len:0

Python doesn't work.

Despite what the readme says, i tried it with python files and it didn't work.
I even removed all my config files and installed only YCM and CompleteParameter in order to see if my config was somewhat problematic, but it didn't work this way either.

repeatability with dot

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

I'm trying to understand why insertion aren't repeatable. Is there something I missed?

当各种原因找不到参数,光标的位置问题

你好,

我同时用了delimitMate和ycm和你的这个插件。

在用你插件之前,输入括号的时候,delimitMate会自动输入另外一个括号并且让光标放在括号之内。

但是用了你的时候,当各种原因找不到参数的时候,光标直接跳到括号之外了。

YouCompleteMe error message corvered CompleteParameter signature message.

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

  • YouCompleteMe: 8e44892
  • CompleteParameter: d538ec3

Minimal Configuration

  • vim version: 8.0.1453.
"-------------------------------------------------------------------------------
" install vim-plug automatically
"-------------------------------------------------------------------------------
if empty(glob('~/.vim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

"------------------------------------------------------------------------------- 
" plugin list
"------------------------------------------------------------------------------- 

" specify a directory for plugins
call plug#begin('~/.vim/plugged')

" YouCompleteMe
Plug 'Valloric/YouCompleteMe'

" airline status bar
Plug 'vim-airline/vim-airline'

" Official theme repository for vim-airline
Plug 'vim-airline/vim-airline-themes'

" complete parameter
Plug 'tenfyzhong/CompleteParameter.vim'

" init plugin system
call plug#end()

"-------------------------------------------------------------------------------
" YouCompleteMe Setting
"-------------------------------------------------------------------------------

" check configure file exist
if !empty(glob("~/.vim/plugged/YouCompleteMe/.ycm_extra_conf"))
  echoerr ".ycm_extra_conf must be exist!"
else
  " C-family Semantic Completion
  let g:ycm_global_ycm_extra_conf = '~/.vim/plugged/YouCompleteMe/.ycm_extra_conf.py'
endif

" complete string
let g:ycm_complete_in_strings = 1

" complete string
let g:ycm_complete_in_comments = 1

" minimun char nums
let g:ycm_min_num_identifier_candidate_chars = 2

" scan id from comments and strings
let g:ycm_collect_identifiers_from_comments_and_strings = 1

" close preview window
set completeopt-=preview

" custom key bind
let g:ycm_key_invoke_completion='<C-Z>'

" apply YCM FixIt
noremap <leader>f<space> :YcmCompleter FixIt<CR>

"-------------------------------------------------------------------------------
" airline Setting
"-------------------------------------------------------------------------------

" Integrating with powerline fonts
let g:airline_powerline_fonts = 1

" beautify tab line
let g:airline#extensions#tabline#enabled = 1

" airline Theme
let g:airline_theme = 'bubblegum'

"-------------------------------------------------------------------------------
" CompleteParameter Setting
"-------------------------------------------------------------------------------

inoremap <silent><expr> ( complete_parameter#pre_complete("()")

" keep value
let g:complete_parameter_py_keep_value = 1

" echo signature
let g:complete_parameter_echo_signature = 1

"-------------------------------------------------------------------------------
" My Setting
"-------------------------------------------------------------------------------

" not show mode status
set noshowmode
" set cmdheight = 2
set cmdheight=2

Issue Details

  • What did you do?
    bug

  • What did you expect to happend?

YouCompleteMe hint message and CompleteParameter signature message should show in the different status lines.

  • What actually happened?

YouCompleteMe message covered CompleteParameter signature.

  • Is there something wrong with my configure? Thanks.

Messages

Solution about auto-pair has some side-effects

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe: master

Minimal Configuration

configs in FAQs about auto-pairs

Issue Details

after I input ( without anything in front, and then input ), there would be a redundant ) like below

())

Messages

插件没有运行

Issue Prelude

  • Category
    • [√ ] Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • [ √] macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • [ gou] Neovim
  • Language
    • C
    • C++
    • [ √] go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

Messages

安装之后照着gif操作并没有出现参数,是因为括号自动补全的原因吗

missing space between long parameter type like 'const struct sockaddr *'

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

Hi, thank you for providing such a good tool.
when I type a function like:
int connect(int, const struct sockaddr *addr, socklen_t);

it completes as connect(int, conststructsockaddr*addr, socklen_t)
missing all the white space between 'const struct sockaddr *'

I mean it's not a bug, this is just a suggestion, thanks.

Messages

keymaping issue

let g:complete_parameter_mapping_goto_next = '<c-j>'
 let g:complete_parameter_mapping_goto_previous = '<c-k>'

this will change the keymaping in normal mode????why?

Completion failed in C code

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe

Minimal Configuration

set rtp+=~/.vim/bundle/CompleteParameter.vim
inoremap ( complete_parameter#pre_complete("()")
smap (complete_parameter#goto_next_parameter)
imap (complete_parameter#goto_next_parameter)
smap (complete_parameter#goto_previous_parameter)
imap (complete_parameter#goto_previous_parameter)

Issue Details

  • What did you do?

Opened a C file and typed

include<stdio.h>
int main(void)
{
      printf(

  • What did you expect to happend?

Complete function parameters

  • What actually happened?

It only completed a pair of parentheses.

include<stdio.h>
int main(void)
{
      printf()

Messages

[CompleteParameter][18:26:35][TRACE][1524911195256921] {'word': 'printf', 'menu
': '[ID]', 'user_data': '0', 'info': '', 'kind': '', 'abbr': ''}
[CompleteParameter][18:27:09][DEBUG][1524911223684581] []
[CompleteParameter][18:27:23][DEBUG][1524911223684581] parseds is empty
[CompleteParameter][18:27:33][TRACE][1524911223684581] ()<80>kl

Are there any options to not complete the python default parameters at all?

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe: c9ff2177

Minimal Configuration

let g:AutoPairs = {'[':']', '{':'}',"'":"'",'"':'"', '`':'`'}
inoremap <buffer><silent> ) <C-R>=AutoPairsInsert(')')<CR>
inoremap <silent><expr> ( complete_parameter#pre_complete("()")
nmap <c-j> <Plug>(complete_parameter#goto_next_parameter)
imap <c-j> <Plug>(complete_parameter#goto_next_parameter)
smap <c-j> <Plug>(complete_parameter#goto_next_parameter)
nmap <c-k> <Plug>(complete_parameter#goto_previous_parameter)
imap <c-k> <Plug>(complete_parameter#goto_previous_parameter)
smap <c-k> <Plug>(complete_parameter#goto_previous_parameter)

Issue Details

I 'm learning Python and mostly I just want to print a object, like print(some_list). I don't need to give other parameters with different value rather than default ones.

When set let g:complete_parameter_py_keep_value = 1, it will complete print with:
print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)

When set let g:complete_parameter_py_keep_value = 0, it will complete print with:
print(value, ..., sep, end, file, flush)

Are there any options to not to complete parameters which already have default value?

How to also keep the types for parameters and not just the names.

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe: f67e5ff27b048d8c55a10ba6a27c6c5b16d0f6ba
(Oct 14, 2018)

First of all I want to say that this plugin is great and really helpful. Thank you!
That beeing said, I wanted to ask if there is a way to keep the types of the parameters when I complete them.

For example instead of:
grafik

Basically adding the types of the parameters:
grafik

Is there a way to do this?
If not, what could I do to get this feature somehow?

Missing parameters list inside parentheses

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe: cd41727

Minimal Configuration

inoremap ( complete_parameter#pre_complete("()")
smap (complete_parameter#goto_next_parameter)
imap (complete_parameter#goto_next_parameter)
smap (complete_parameter#goto_previous_parameter)
imap (complete_parameter#goto_previous_parameter)

Issue Details

  • What did you do?

When i try to autocomplete functions, parameters does not insert inside parentheses.

  • What did you expect to happens?

Insertion of parameters inside function parentheses

  • What actually happened?

Only add empty parentheses

Messages

[CompleteParameter][03:55:40][TRACE][814724358] {'word': 'XGBClassifier', 'menu': 'class XGBClassifier', 'info': 'XGBClassifier(self, max_depth=3, learning_rate=0.1,
n_estimators=100, silent=True,
objective="binary:logistic", nthread=-1, gamma=0,
min_child_weight=1, max_delta_step=0, subsample=1,
colsample_bytree=1, colsample_bylevel=1, reg_alpha=0,
reg_lambda=1, scale_pos_weight=1, base_score=0.5,
seed=0, missing=None)
', 'kind': '', 'abbr': ''}

[CompleteParameter][03:56:19][DEBUG][375168591] []

[CompleteParameter][03:56:43][DEBUG][1816182727] parseds is empty

Unexpected action when use with ultisnips

@SirVer I found some unexpected action when I expand a snippet. For example, I expand a main snippet, and use ycm to complete my function, after that, This plugin will expand the parameters of the function and select the first parameter. And then, I type <m-n>, this mapping key will jump to the next parameter, but it erase the selection word. If I remove the ultisnips, it work well. Can you give me some help what happen when the snippet expand? Thank you.
This is an unexpected example:
bad

This is what I expect:
good

conflict with ultisnips keymap

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim

Minimal Configuration

for ultisnips:

        Plug 'SirVer/ultisnips'
        let g:UltiSnipsListSnippets = "<c-o>"
        let g:UltiSnipsJumpForwardTrigger = "<c-o>"
        let g:UltiSnipsJumpBackwardTrigger = "<c-u>"

Issue Details

the <c-o> doesn't work for ultisnips,
removing CompleteParameter.vim/after/plugin/compatible_with_ultisnips.vim seems solves the issue

Complete info wrong using python

#!/usr/bin/python3                                                                                                       
# -*- coding: utf-8 -*-

import os
os.mkdir(Create a directory.If dir_fd is not None, it should be a file descriptor open to a directory, and path should be
        relative; path will then be relative to that directory.dir_fd may not be implemented on your platform. If it is
        unavailable, using it will raise a NotImplementedError.The mode argument is ignored on Windows.)

when input os.mkdir(, get wrong info: Create a directory.I....

log:
TRACE:1505407984686285: {'word': 'mkdir', 'menu': 'def mkdir', 'info': 'Create a directory.^@^@if dir_fd is not None, it should be a file descriptor open to a directory,^@ and path should be
relative; path will then be relative to that directory.^@dir_fd may not be implemented on your platform.^@ If it is unavailable, using it will raise a NotImplementedError.^@^@the mode argum
ent is ignored on Windows.', 'kind': '', 'abbr': ''}

Show default value of parameters (if any)

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

I think it would be better to show which parameters have a default value, so they are not required, for example in python:

import os
os.getenv(key, default)

it would be better to show:

os.getenv(key, default=None)

Hope to support coc.nvim

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

最近换了 coc.nvim,发现补全时的参数补全没有了,查了下发现这里好像没有支持 coc.nvim,所以我是来向大佬请求支持 coc.nvim 的参数补全的。。。。。

Messages

CompleteParameter fails and crashes when completing a destructing call in JS

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing you issue:

  • I have read and understood CompleteParameter's README,
    especially the Frequently Asked Questions section.
  • I have searched CompleteParameters's issue tracker to find issues similar
    to the one I'm about to report and couldn't find an answer to my problem.
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have attached the contents of log follow the steps.
    1. Execute let g:complete_parameter_log_level = 1.
    2. Replay you action.
    3. Execute messages.
    4. Copy the output and place it to next section.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

https://asciinema.org/a/h4mpyMBn180t0VEr5UyZCJPpX

I'm trying to complete a Javascript function which uses destructuring in it's signature. I'm using YouCompleteMe which is backed by Tern under the hood.

const object = {
  fn: function ({arg1, arg2, arg3}) {}
}

object.fn(

Two problems happen:

  • One the first argument insertion CompleteParameter.vim overwrites the opening square bracket. Instead it should only overwrite the first property (arg1) of the object.
  • When jumping to the last argument Neovim crashes.

Diagnostic data

Language

Javascript

Output of vim --version

$ nvim --version
Alias tip: v --version
NVIM v0.2.1-dev
Build type: RelWithDebInfo
Compilation: /usr/bin/x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/build/config -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/src -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/build/src/nvim/auto -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/build/include
Compiled by root@lgw01-09

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Output of message

No output as neovim crashes before then.

OS version, distribution, etc.

$ uname -a
Linux dani-T440s 4.10.0-22-generic #24-Ubuntu SMP Mon May 22 17:43:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

when complete function, not want complete the parameter type

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

Minimal Configuration

Issue Details

  • What did you do?

my function is util_rbtree_node_t* util_rbtree_lookup(util_rbtree_t *rbtree, util_key_t key);
but it completes like this:
util_rbtree_lookup(*rbtree, key);

however I did not want the * before rbtree, I want below
util_rbtree_lookup(rbtree, key);

how can I do it ? thanks

  • What did you expect to happend?
  • What actually happened?

Messages

Fails to insert arguments for Golang

First of all, thank you for an amazing plugin! I've been looking everywhere for something like this.

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing you issue:

  • I have read and understood CompleteParameter's README,
    especially the Frequently Asked Questions section.
  • I have searched CompleteParameters's issue tracker to find issues similar
    to the one I'm about to report and couldn't find an answer to my problem.
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have attached the contents of log follow the steps.
    1. Execute let g:complete_parameter_log_level = 1.
    2. Replay you action.
    3. Execute messages.
    4. Copy the output and place it to next section.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key
questions:

  • What did you do?

I'm using vim-go and CompleteParameter.vim to insert Golang completions. Inserting parameters fails with a :doautocmd User CompleteParameterFailed.

  • What did you expect to happen?

I expected it to insert dummy parameters into the function.

  • What actually happened?

Inserting parameters fails with a :doautocmd User CompleteParameterFailed.

Diagnostic data

Language

Golang

Output of vim --version

$ nvim --version
Alias tip: v --version
NVIM v0.2.1-dev
Build type: RelWithDebInfo
Compilation: /usr/bin/x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/build/config -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/src -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/.deps/usr/include -I/usr/include -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/build/src/nvim/auto -I/build/neovim-KAEFpM/neovim-0.2.0ubuntu1+git201705081829+3414+24~ubuntu16.04.1/build/include
Compiled by root@lgw01-09

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Output of message

"main.go" 187L, 4042C
TRACE:1: s:completed_word: Post
TRACE:1: select_complete_word: Post(
Press ENTER or type command to continue

OS version, distribution, etc.

$ uname -a
Linux dani-T440s 4.10.0-22-generic #24-Ubuntu SMP Mon May 22 17:43:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.