Compare commits

..

No commits in common. "3f48f65ca5acfe6f3e900ec628904b4d8bb65164" and "c63c5b3ae6af01f07678d593d1d86b10ed30afbc" have entirely different histories.

1 changed files with 8 additions and 4 deletions

View File

@ -56,12 +56,16 @@ vim.keymap.set('n', '<leader>wq', '<cmd>TroubleToggle workspace_diagnostics<cr>'
-- vim-plug -- vim-plug
local data_dir = vim.fn.stdpath('data') local data_dir = vim.fn.stdpath('data')
vim.cmd([[ vim.cmd([[
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' " Install vim-plug if not found
if empty(glob(data_dir . '/autoload/plug.vim')) if empty(glob('~/.vim/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif endif
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC " Run PlugInstall if there are missing plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | source $MYVIMRC
\| endif
]]) ]])
local Plug = vim.fn['plug#'] local Plug = vim.fn['plug#']