mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
f24c8e5131
The thing is currently unstable, requires the nightly branch of neovim, and the highlighting groups need a lot of tweaking (obviously, :HLT doesn't work, making this even harder). I just put the configuration into the repo in case I need it in the future.
37 lines
1.1 KiB
VimL
37 lines
1.1 KiB
VimL
let g:nvim_dotfiles_dir = expand('<sfile>:p:h')
|
|
|
|
let g:vim_ide = get(g:, 'vim_ide', 0)
|
|
let g:vim_ide_treesitter = get(g:, 'vim_ide_treesitter', 0)
|
|
|
|
let &runtimepath = g:nvim_dotfiles_dir.','.&runtimepath.','.g:nvim_dotfiles_dir.'/after'
|
|
|
|
|
|
let s:vim_config_dir = stdpath("config")
|
|
let s:vim_plug_script = s:vim_config_dir . '/autoload/plug.vim'
|
|
let s:vim_plug_home = s:vim_config_dir . '/plugged'
|
|
|
|
let s:just_installed_vim_plug = 0
|
|
if !filereadable(s:vim_plug_script)
|
|
execute '!curl -fL https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim --create-dirs -o' shellescape(s:vim_plug_script)
|
|
autocmd VimEnter * PlugInstall --sync
|
|
endif
|
|
|
|
call plug#begin(s:vim_plug_home)
|
|
Plug 'junegunn/vim-plug'
|
|
runtime! dotfiles/plugins-list.vim
|
|
call plug#end()
|
|
if g:vim_ide_treesitter
|
|
runtime! dotfiles/treesitter.vim
|
|
endif
|
|
|
|
" Automatically install/clean plugins (because I'm a programmer) {{{
|
|
augroup vimrc-plugins
|
|
autocmd!
|
|
autocmd VimEnter *
|
|
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
|
\| PlugInstall --sync | q
|
|
\| endif
|
|
augroup END
|
|
" }}}
|
|
|
|
colorscheme dotfiles
|