Browse Source

Add CocExtensions as Plugins

master
Schneider 5 years ago
parent
commit
6c9bc62991
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 13
      init.vim
  2. 1
      vim/ftplugin/cpp.vim

13
init.vim

@ -32,6 +32,19 @@ Plug 'https://github.com/alok/notational-fzf-vim' " note taking
Plug 'prettier/vim-prettier', { 'do': 'npm install' } " prettier integration Plug 'prettier/vim-prettier', { 'do': 'npm install' } " prettier integration
Plug 'honza/vim-snippets' " Collection of Snippets, used by coc-snippet Plug 'honza/vim-snippets' " Collection of Snippets, used by coc-snippet
" {{{ CocPlugins
Plug 'neoclide/coc-json', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-snippets', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-tsserver', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-rls', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-vetur', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-css', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-vimtex', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-html', { 'do': 'yarn install --frozen-lockfile' }
Plug 'neoclide/coc-yaml', { 'do': 'yarn install --frozen-lockfile' }
Plug 'marlonfan/coc-phpls', { 'do': 'yarn install --frozen-lockfile' }
" }}}
" html / templates{{{ " html / templates{{{
Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue', 'markdown'] } " emmet support for vim - easily create markdup wth CSS-like syntax Plug 'mattn/emmet-vim', { 'for': ['html', 'php', 'gohtmltmpl', 'vue', 'markdown'] } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " match tags in html, similar to paren support Plug 'gregsexton/MatchTag', { 'for': ['html', 'php', 'gohtmltmpl', 'vue'] } " match tags in html, similar to paren support

1
vim/ftplugin/cpp.vim

@ -9,3 +9,4 @@ setlocal tabstop=2
" Documentation inside vim " Documentation inside vim
command! -nargs=+ Cppman silent! call system("tmux split-window cppman " . expand(<q-args>)) command! -nargs=+ Cppman silent! call system("tmux split-window cppman " . expand(<q-args>))
autocmd FileType cpp nnoremap <silent><buffer> K <Esc>:Cppman <cword><CR> autocmd FileType cpp nnoremap <silent><buffer> K <Esc>:Cppman <cword><CR>
nnoremap <F5> :!g++ -o /tmp/a.out % && /tmp/a.out<CR>
Loading…
Cancel
Save