neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.15k stars 953 forks source link

Imported VSCode extension does not work #2364

Closed AtomToast closed 3 years ago

AtomToast commented 3 years ago

Result from CocInfo

## versions

vim version: NVIM v0.4.4
node version: v14.11.0
coc.nvim version: 0.0.79-5fd6b7b9b1
coc.nvim directory: /home/kjell/.local/share/nvim/plugged/coc.nvim
term: st-256color
platform: linux

## Output channel: prettier

## Output channel: snippets

[Info 8:10:06 PM] Using ultisnips directories: UltiSnips /home/kjell/.config/coc/extensions/node_modules/vscode-nand2tetris-hdl/snippets/ /home/kjell/.config/coc/ultisnips
[Info 8:10:07 PM] Using ultisnips python command: pyx

Describe the bug

I imported this vscode extensions, mainly for snippets. According to here this should be possible. It appeared to have been installed successfully, it exists in the extensions list and I can open it's configuration however inside of .hdl files I do not get any snippet suggestions or other kind functionality.

Reproduce the bug

CHIP And {
    IN a, b;
    OUT out;

    PARTS:
    Nand(a=a,b=b,out=n1);
    Not(in=n1,out=out);
}

(Note that I also tried installing it through vim-plug with the same outcome)

chemzqm commented 3 years ago

It uses hdl as filetype, not vhdl detected by vim, checkout :h coc_filetype_map

fannheyward commented 3 years ago
let g:coc_filetype_map = {
      \'vhdl': 'hack_hdl',
      \ }