Skip to content
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

Enter all keywords and they will be removed from completion. #101

Closed
nabezokodaikon opened this issue Jan 24, 2020 · 1 comment
Closed

Comments

@nabezokodaikon
Copy link
Contributor

Problems summary

Enter all keywords and they will be removed from completion.

Expected

Even if you enter all keywords, do not disappear from the completion candidates.

Environment Information

  • nvim-lsp version (SHA1): 7a15a52

  • deoplete-lsp version (SHA1): 7a8c44f423bc4339c092a759abaad40131d2c98a

  • deoplete version (SHA1): 5be25591770c5abc7214e8899c4d451c479ac2ec

  • OS: Mac

  • neovim/Vim :version output: NVIM v0.5.0-324-gef379d4ea

Plugins and settings

[[plugins]]	
repo = 'Shougo/deoplete.nvim'	
hook_add = ''' 	
call deoplete#custom#var('omni', 'input_patterns', {
    \ 'rust': '(\.|::|->)\w',
    \})

call deoplete#custom#option('sources', {
    \ 'rust': ['lsp'],
    \})
   
call deoplete#custom#source('_', 'converters', [
    \ 'converter_remove_paren',
    \ 'converter_remove_overlap',
    \ 'matcher_length',
    \ 'converter_truncate_abbr',
    \ 'converter_truncate_info',
    \ 'converter_truncate_menu',
    \ 'converter_auto_delimiter',
    \])

set completeopt-=preview

call deoplete#enable()	
'''

[[plugins]]
repo = 'Shougo/deoplete-lsp'	

[[plugins]]
repo = 'neovim/nvim-lsp'
hook_add = '''
    command! Scratch lua require'lsp'.makeScratch()
'''

.config/nvim/lua/lsp.lua

-- 
local api = vim.api
local M = {}
function M.makeScratch()
    require'nvim_lsp'.rls.setup{}
end
return M

How to reproduce the problem from neovim startup

  1. $ cargo new issue-rust
  2. $ cd issue-rust
  3. $ nvim
  4. :Scratch
  5. :e src/main.rs
  6. Type appropriately

In this example, typing st leaves str as a completion candidate, but typing str removes str from the completion candidates.
スクリーンショット 2020-01-25 1 54 04

スクリーンショット 2020-01-25 1 54 24

In VSCode, completion candidates remain.
スクリーンショット 2020-01-25 1 58 18

@nabezokodaikon
Copy link
Contributor Author

I'm starting to feel like a problem with deoplete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant