Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cposture/coc-thrift-syntax-support

thrift-syntax-support for vim
https://github.com/cposture/coc-thrift-syntax-support

autocomplete coc nvim-plugin thrift vim-plugin

Last synced: 7 days ago
JSON representation

thrift-syntax-support for vim

Awesome Lists containing this project

README

        

# coc-thrift-syntax-support

> fork from [thrift-syntax-support](https://github.com/MrKou47/thrift-syntax-support) and [commit](11cc3c9e585f07776a19f921dc72ecd256e9b1e5)

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

![Example showcasing autocompletion](./demo/completion.gif)
![Example showcasing go-to-defintion](./demo/go-to-define.gif)
![Example showcasing hover information](./demo/hover.gif)

## 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

```vim
" GoTo code navigation.
nmap gd (coc-definition)

" Use K to show documentation in preview window.
nnoremap K :call show_documentation()

function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('')
else
call CocAction('doHover')
endif
endfunction
```

## License

MIT

---

> This extension is built with [create-coc-extension](https://github.com/fannheyward/create-coc-extension)