nvim-lua / completion-nvim

A async completion framework aims to provide completion to neovim's built in LSP written in Lua
Apache License 2.0
973 stars 78 forks source link

Wrong markdown rendering when showing method documentation #356

Open baco opened 3 years ago

baco commented 3 years ago

When displaying documentation of a method, the signature gets interpreted as Markdown instead of being treated as a code snippet. As seen in the first screenshot foo(*args, **kwargs) is treated as if the intention was to make bold text using the * character around words

My testing minimal init.vim

" nvim-lspconfig
lua require('lspconfig').pyls.setup{}

" completion-nvim
autocmd FileType python lua require('completion').on_attach()
let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy']
let g:completion_matching_ignore_case = 1  " not v:true, 1. ¯\_(ツ)_/¯
let g:completion_matching_smart_case = 1  " not v:true, 1. ¯\_(ツ)_/¯
let g:completion_trigger_on_delete = 1  " not v:true, 1. ¯\_(ツ)_/¯

How to reproduce

Expected behavior Something without misleading highlighting, even this: Screenshot from 2021-03-16 12-12-17

ranjithshegde commented 3 years ago

@baco is it fixed by #371?