diff options
author | Julian T <julian@jtle.dk> | 2020-08-22 12:59:48 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-08-22 12:59:48 +0200 |
commit | 80fdbcbe68567dc6ad9b2f4b64c687d0ba6376b4 (patch) | |
tree | 21677171a4d30e382b4ac6a97f0e3035be36ecde /vim/.vimrc | |
parent | 320ea7569a64175198588e0941e580eec3ec7150 (diff) |
Ultisnippits setup
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 26 |
1 files changed, 11 insertions, 15 deletions
@@ -15,8 +15,7 @@ set shellslash " Completion Plugin 'prabirshrestha/async.vim' Plugin 'prabirshrestha/vim-lsp' - Plugin 'fatih/vim-go' - Plugin 'ajh17/VimCompletesMe' + Plugin 'lifepillar/vim-mucomplete' Plugin 'Shougo/echodoc.vim' Plugin 'tpope/vim-surround' @@ -42,34 +41,31 @@ set shellslash " File support " Plugin 'cespare/vim-toml' - Plugin 'lervag/vimtex' + "Plugin 'lervag/vimtex' " Plugin 'vimwiki/vimwiki' - " Snippets are separated from the engine. Add this if you want them: - " Plugin 'honza/vim-snippets' + " Snippits + Plugin 'SirVer/ultisnips' + Plugin 'honza/vim-snippets' call vundle#end() " required filetype plugin indent on " required " Completion - set completeopt=menuone - " let g:go_def_mode='gopls' - " let g:go_info_mode='gopls' + set completeopt+=menuone + set completeopt+=noselect + + let g:UltiSnipsExpandTrigger = '<C-s>' + let g:mucomplete#chains = {} + let g:mucomplete#chains.default = [ 'ulti', 'path', 'omni', 'keyn' ] if has('nvim') let g:echodoc#enable_at_startup = 1 let g:echodoc#type = 'virtual' endif - autocmd FileType c let b:vcm_tab_complete = 'omni' - autocmd FileType cpp let b:vcm_tab_complete = 'omni' - autocmd FileType py let b:vcm_tab_complete = 'omni' - autocmd FileType go let b:vcm_tab_complete = 'omni' - autocmd FileType ruby let b:vcm_tab_complete = 'omni' - autocmd FileType vim let b:vcm_tab_complete = 'vim' - " Lsp options let g:lsp_signature_help_enabled = 0 let g:lsp_insert_text_enabled = 0 |