You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vim version: NVIM v0.5.0-436-ge8269a3ab
node version: v13.12.0
coc.nvim version: 0.0.78-312c7c4482
term: xterm-256color
platform: linux
Output channel: snippets
[Info 6:44:37 PM] Using ultisnips directories: UltiSnips /home/sensei/.config/coc/ultisnips
[Info 6:44:37 PM] Using ultisnips python command: pyx
Describe the bug
When opening function documentation in preview window for javascript code in <script> tags in a .html or .php file, escape backslashes are often displayed in the doHover window
Reproduce the bug
mini.vim:
set nocompatible
set runtimepath^=/path/to/coc.nvim
filetype plugin indent on
syntax on
set hidden
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
Open .php or .html tag, put functions in <script> tags, open function documentation, escape backslashes appear for most functions (NOT ALL)
Screenshots (optional)
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Escape backslashes in JS written inside <script> tagsw
Escape backslashes in JS written inside <script> tags
Apr 16, 2020
@alnj You can try Plug “flw-cn/vim-markdown” which is a fork for plasticboy/vim-markdown and it automatically hides the backslash. see PR preservim/vim-markdown#515 to see exactly what it does.
Same problem as #752
Result from CocInfo
versions
vim version: NVIM v0.5.0-436-ge8269a3ab
node version: v13.12.0
coc.nvim version: 0.0.78-312c7c4482
term: xterm-256color
platform: linux
Output channel: snippets
[Info 6:44:37 PM] Using ultisnips directories: UltiSnips /home/sensei/.config/coc/ultisnips
[Info 6:44:37 PM] Using ultisnips python command: pyx
Describe the bug
When opening function documentation in preview window for javascript code in <script> tags in a .html or .php file, escape backslashes are often displayed in the doHover window
Reproduce the bug
mini.vim:
Open .php or .html tag, put functions in <script> tags, open function documentation, escape backslashes appear for most functions (NOT ALL)
Screenshots (optional)
The text was updated successfully, but these errors were encountered: