diff options
author | Chris <[email protected]> | 2020-04-26 01:39:35 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2020-04-26 01:39:35 -0400 |
commit | b2cb147f7ac5c110638fcc280174d83aed95908f (patch) | |
tree | 9f298cf319c094eeb9a0d46f18df142b0e8cd2ad /vim-plug | |
parent | f9540fcf4d08215ff679a760c3658a1edd0b75bd (diff) |
added airline
Diffstat (limited to 'vim-plug')
-rw-r--r-- | vim-plug/plugins.vim | 67 |
1 files changed, 8 insertions, 59 deletions
diff --git a/vim-plug/plugins.vim b/vim-plug/plugins.vim index baaab75c..0ec61f48 100644 --- a/vim-plug/plugins.vim +++ b/vim-plug/plugins.vim @@ -3,7 +3,7 @@ if empty(glob('~/.config/nvim/autoload/plug.vim')) silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim "autocmd VimEnter * PlugInstall - "autocmd VimEnter * PlugInstall | source $MYVIMRC + autocmd VimEnter * PlugInstall | source $MYVIMRC endif call plug#begin('~/.config/nvim/autoload/plugged') @@ -15,43 +15,13 @@ call plug#begin('~/.config/nvim/autoload/plugged') " Auto pairs for '(' '[' '{' Plug 'jiangmiao/auto-pairs' " Themes - Plug 'joshdick/onedark.vim' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Plug 'christianchiarulli/onedark.vim' + Plug 'kaicataldo/material.vim' + " Intellisense + Plug 'neoclide/coc.nvim', {'branch': 'release'} + " Status Line + Plug 'vim-airline/vim-airline' + Plug 'vim-airline/vim-airline-themes' call plug#end() @@ -61,24 +31,3 @@ autocmd VimEnter * \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) \| PlugInstall --sync | q \| endif - -" Press gx to open the GitHub URL for a plugin or a commit with the default browser. -function! s:plug_gx() - let line = getline('.') - let sha = matchstr(line, '^ \X*\zs\x\{7,9}\ze ') - let name = empty(sha) ? matchstr(line, '^[-x+] \zs[^:]\+\ze:') - \ : getline(search('^- .*:$', 'bn'))[2:-2] - let uri = get(get(g:plugs, name, {}), 'uri', '') - if uri !~ 'github.com' - return - endif - let repo = matchstr(uri, '[^:/]*/'.name) - let url = empty(sha) ? 'https://github.com/'.repo - \ : printf('https://github.com/%s/commit/%s', repo, sha) - call netrw#BrowseX(url, 0) -endfunction - -augroup PlugGx - autocmd! - autocmd FileType vim-plug nnoremap <buffer> <silent> gx :call <sid>plug_gx()<cr> -augroup END |