0.0.0-development • Published 3 years ago

coc-thrift-syntax-support v0.0.0-development

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

coc-thrift-syntax-support

fork from thrift-syntax-support and commit

thrift syntax support for vim, You can use it to autocomplete, go to definition

Example showcasing autocompletion Example showcasing go-to-defintion Example showcasing hover information

Install

:CocInstall coc-thrift-syntax-support

If you are using vim's plugin manager for coc-extensions, here's an example with vim-plug:

Plug 'cposture/coc-thrift-syntax-support', {'do': 'yarn install --frozen-lockfile && yarn build'}

Usage

coc-thrift-syntax-support trigger completion request automatically without explicitly requesting it using a keyboard shortcut

If you firstly use coc-extensions, here are some common configurations

" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)

" 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

License

MIT


This extension is built with create-coc-extension