Giter Site home page Giter Site logo

Comments (8)

ccshao avatar ccshao commented on June 8, 2024 1

Thanks for the update, will try it later!

from deoplete.nvim.

Shougo avatar Shougo commented on June 8, 2024
call deoplete#custom#source('lsp', 'is_volatile', v:false)

from deoplete.nvim.

ccshao avatar ccshao commented on June 8, 2024

Thanks for the quick tips! A really versatile plugin.

A further question, with is_volatile as false, if I am not satisfied with the candidates provided by lsp, how could force it to refresh lsp candiates?

from deoplete.nvim.

Shougo avatar Shougo commented on June 8, 2024

You can use deoplete#manual_complete() for it.

from deoplete.nvim.

ccshao avatar ccshao commented on June 8, 2024

Here are my current settings. When enabling call deoplete#custom#source('lsp', 'is_volatile', v:false), very often the lsp candidates are not shown in the popup , even when I trigger the manual complete using <C-space>.

LSP condidates are always shown in popup nearly instantly without is_volatile setting. Any issues with my configs? Thanks!

let g:deoplete#enable_at_startup = 1
let g:deoplete#lsp#handler_enabled = v:false
let g:deoplete#lsp#use_icons_for_candidates = v:true

set completeopt+=noinsert
set shortmess+=c

call deoplete#custom#option('num_processes', 1)
call deoplete#custom#source('_', 'smart_case', v:true)
call deoplete#custom#source('_', 'mark', '')
" call deoplete#custom#source('lsp', 'is_volatile', v:false)
call deoplete#custom#option({
  \ 'min_pattern_length': 1,
  \ 'camel_case': v:true,
  \ 'refresh_backspace': v:false,
  \ 'auto_refresh_delay' : 10,
  \ 'auto_complete_delay' : 10,
\ })

inoremap <expr> <CR> (pumvisible() ? "\<c-y>" : "\<CR>")
inoremap <silent> <C-Space> <C-r>=deoplete#manual_complete()<cr>

from deoplete.nvim.

Shougo avatar Shougo commented on June 8, 2024

Unfortunately, lsp source behavior depends on is_volatile.
You need to enable is_volatile instead.
No magic for it.

I develop new auto completion plugin currently.
https://github.com/Shougo/ddc.vim

deoplete is deprecated plugin and I don't plan to fix the problem.

from deoplete.nvim.

ccshao avatar ccshao commented on June 8, 2024

Thanks for update, deoplete is very smart and this small issue is bearable.

from deoplete.nvim.

Shougo avatar Shougo commented on June 8, 2024

I have added the feature in ddc.vim. Cheers.

from deoplete.nvim.

Related Issues (20)

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.