diff --git a/init.vim b/init.vim index d8c776c..11476fd 100644 --- a/init.vim +++ b/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 '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{{{ 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 diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 2a45a11..623f587 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -9,3 +9,4 @@ setlocal tabstop=2 " Documentation inside vim command! -nargs=+ Cppman silent! call system("tmux split-window cppman " . expand()) autocmd FileType cpp nnoremap K :Cppman +nnoremap :!g++ -o /tmp/a.out % && /tmp/a.out