tenfyzhong/CompleteParameter.vim

Completion failed in C code

Closed this issue · 1 comments

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

Solved it. My configurations of YCM is wrong.I'll close it.