-
Notifications
You must be signed in to change notification settings - Fork 59
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
omnicompletion of function after opening parentheses #462
Comments
I committed 0f774f9 to address this issue. Can you try the latest plugin? |
Thank you! Now we advanced one line as it spits out
|
# autoload/lsp/completion.vim (line 513)
var prefix = lspserver->get('omniCompleteKeyword', '') indeed fixes the error
Still, instead of completing |
I am not able to reproduce this issue with a python file and the pylsp language server. Can you attach the language server configuration, LSP plugin configuration, a sample python file and the sequence of steps to reproduce this problem? |
Calling
with set nocompatible
language messages en_US " To avoid scrambled non english letters.
let &rtp = '~/.vim/plugged/lsp/' . ',' . &rtp
autocmd VimEnter * source ~/.vim/after/settings/lsp.vim
filetype plugin indent on
syntax on
" options go here
set hidden with let lspOpts = #{
\ autoComplete: v:false,
\ }
call LspOptionsSet(lspOpts)
let lspServers = []
if filereadable($HOME . '/.local/bin/pylsp')
call add(lspServers, #{name: 'pylsp',
\ filetype: 'python',
\ path: $HOME . '/.local/bin/pylsp',
\ args: ['--check-parent-process', '--verbose']
\ })
endif
call LspAddServer(lspServers) and typing Trovato errore eseguendo function LspOmniFunc:
riga 43:
E716: Chiave assente dal Dizionario: "omniCompleteKeyword" If instead |
Thank you! Now it works without errors and does not insert text when there's nothing to complete. |
After having passed
autoComplete: v:false
toLspOptionsSet()
, then in Python (or any other language using functions whose arguments are passed inside parentheses), omni-completinggives
If instead
print
is completed toprint(
, then completingprint(
completes toprint(print
The text was updated successfully, but these errors were encountered: