prabirshrestha / vim-lsp

async language server protocol plugin for vim and neovim
MIT License
3.12k stars 305 forks source link

Markdown italics-rendering issue due to underscore in function signature #1452

Closed lukelbd closed 1 year ago

lukelbd commented 1 year ago

It seems that underscores in function signatures can lead to casting entire docstrings into italics (note italics start at the first underscore before Intlike -- this is for the numpy.arange python function):

Screenshot 2023-03-26 at 16 09 12

Vim version:

``` VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Oct 28 2022 21:23:20) macOS version - x86_64 Included patches: 1-814 Compiled by root@Mac-1666991276477.local Huge version without GUI. Features included (+) or not (-): +acl +file_in_path +mouse_urxvt -tag_any_white +arabic +find_in_path +mouse_xterm -tcl +autocmd +float +multi_byte +termguicolors +autochdir +folding +multi_lang +terminal -autoservername -footer -mzscheme +terminfo -balloon_eval +fork() +netbeans_intg +termresponse +balloon_eval_term +gettext +num64 +textobjects -browse -hangul_input +packages +textprop ++builtin_terms +iconv +path_extra +timers +byte_offset +insert_expand +perl +title +channel +ipv6 +persistent_undo -toolbar +cindent +job +popupwin +user_commands -clientserver +jumplist +postscript +vartabs +clipboard +keymap +printer +vertsplit +cmdline_compl +lambda +profile +vim9script +cmdline_hist +langmap -python +viminfo +cmdline_info +libcall +python3 +virtualedit +comments +linebreak +quickfix +visual +conceal +lispindent +reltime +visualextra +cryptv +listcmds +rightleft +vreplace +cscope +localmap -ruby +wildignore +cursorbind -lua +scrollbind +wildmenu +cursorshape +menu +signs +windows +dialog_con +mksession +smartindent +writebackup +diff +modify_fname -sodium -X11 +digraphs +mouse -sound -xfontset -dnd -mouseshape +spell -xim -ebcdic +mouse_dec +startuptime -xpm +emacs_tags -mouse_gpm +statusline -xsmp +eval -mouse_jsbterm -sun_workshop -xterm_clipboard +ex_extra +mouse_netterm +syntax -xterm_save +extra_search +mouse_sgr +tag_binary -farsi -mouse_sysmouse -tag_old_static system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" defaults file: "$VIMRUNTIME/defaults.vim" fall-back for $VIM: "/Users/ldavis/mambaforge/share/vim" Compilation: x86_64-apple-darwin13.4.0-clang -c -I. -Iproto -DHAVE_CONFIG_H -isystem /Users/ldavis/mambaforge/include -mmacosx-version-min=10.9 -DMACOS_X -DMACOS_X_DARWIN -I/Users/ldavis/mambaforge/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/ldavis/mambaforge/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/vim_1666991858049/work=/usr/local/src/conda/vim-9.0.0814 -fdebug-prefix-map=/Users/ldavis/mambaforge=/usr/local/src/conda-prefix -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: x86_64-apple-darwin13.4.0-clang -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/ldavis/mambaforge/lib -L/Users/ldavis/mambaforge/lib -o vim -lm -ltinfo -liconv -lintl -framework AppKit -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/ldavis/mambaforge/lib -L/Users/ldavis/mambaforge/lib -fstack-protector-strong -L/Users/ldavis/mambaforge/lib/perl5/5.32/core_perl/CORE -lperl -L/Users/ldavis/mambaforge/lib/python3.10/config-3.10-darwin -lpython3.10 -framework CoreFoundation ```

Plugins (result of :PlugStatus from vim-plug):

``` Finished. 0 error(s). [=============================================================] - denops.vim: OK - vim-textobj-line: OK - vim-tmux: OK - vim-characterize: OK - applescript.vim: OK - vim-toml: OK - ddc-around: OK - tcomment_vim: OK - vim-lsp: OK - vim-autoformat: OK - braceless.vim: OK - vim-easy-align: OK - undotree: OK - vim-cython: OK - vim-markdown: OK - vim-eunuch: OK - vim-matchup: OK - vim-textobj-indent: OK - ddc-fuzzy: OK - vim-autopep8: OK - jupytext.vim: OK - vim-superman: OK - ddc-file: OK - vim-obsession: OK - gv.vim: OK - vim-sneak: OK - vim-colorschemes: OK - close-buffers.vim: OK - vim-gitgutter: OK - vim-fahrenheit: OK - HowMuch: OK - vim-isort: OK - vim-textobj-user: OK - ddc-buffer: OK - vim-lsp-ale: OK - vim-vsnip-integ: OK - FastFold: OK - vim-fugitive: OK - denops-popup-preview.vim: OK - colorizer: OK - yowish.vim: OK - vim-test: OK - vim-vsnip: OK - vim-textobj-parameter: OK - vim-speeddating: OK - vim-liquid: OK - ale: OK - .fzf: OK - jedi-vim: OK - fzf.vim: OK - black: OK - splitjoin.vim: OK - jupyter-vim: OK - delimitmate: OK - vim-textobj-entire: OK - ddc-vim-lsp: OK - vim-surround: OK - codi.vim: OK - julia-vim: OK - vim-lsp-settings: OK - ddc.vim: OK ```
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.