- Notifications
You must be signed in to change notification settings - Fork2
Language Server Protocol snippets in vim using vim-lsp and neosnippet.vim
License
thomasfaingnaert/vim-lsp-neosnippet
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This plugin integratesneosnippet.vim invim-lsp to provide Language Server Protocol snippets.You can use both Vim's built-in omnifunc orasyncomplete.vim for completion.
This plugin requiresneosnippet.vim,vim-lsp and their dependencies.If these are already installed and you are usingvim-plug, you can simply add this to your vimrc:
Plug'thomasfaingnaert/vim-lsp-snippets'Plug'thomasfaingnaert/vim-lsp-neosnippet'
Otherwise, you can install these usingvim-plug as well:
Plug'Shougo/neosnippet.vim'Plug'prabirshrestha/async.vim'Plug'prabirshrestha/vim-lsp'Plug'thomasfaingnaert/vim-lsp-snippets'Plug'thomasfaingnaert/vim-lsp-neosnippet'
By default, snippet integration is enabled for all language servers. You can disable snippets for one or more servers manually as follows:
autocmdUserlsp_setupcalllsp#register_server({\'name':'clangd',\'cmd': {server_info->['clangd']},\'whitelist': ['c','cpp','objc','objcpp','cc'],\'config': {'snippets':0 }\})
callplug#begin()Plug'Shougo/neosnippet.vim'Plug'prabirshrestha/async.vim'Plug'prabirshrestha/vim-lsp'Plug'thomasfaingnaert/vim-lsp-snippets'Plug'thomasfaingnaert/vim-lsp-neosnippet'callplug#end()imap<expr><Tab>neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<Tab>"smap<expr><Tab>neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<Tab>"ifexecutable('clangd')augroupvim_lsp_cppautocmd!autocmdUserlsp_setupcalllsp#register_server({\'name':'clangd',\'cmd': {server_info->['clangd']},\'whitelist': ['c','cpp','objc','objcpp','cc'],\})autocmdFileTypec,cpp,objc,objcpp,ccsetlocalomnifunc=lsp#completeaugroupendendififhas('conceal')set conceallevel=2 concealcursor=nivendifsetcompleteopt+=menuone
About
Language Server Protocol snippets in vim using vim-lsp and neosnippet.vim
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.
