nvim: switch dein>submodules for plugins

dein is such a weird thing idk, and submodules just work: if i dont want a plugin? okay, just move it out or rm the directory lol
This commit is contained in:
Vitor Gonçalves 2024-01-20 02:43:30 -03:00
parent e21edaa14d
commit d407ba049e
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
5 changed files with 17 additions and 15 deletions

View File

@ -1,16 +1,5 @@
set nocompatible
" plugins
execute 'set runtimepath+=' . '/home/vtrgnc/.local/share/dein/repos/github.com/Shougo/dein.vim'
call dein#begin('/home/vtrgnc/.local/share/dein')
call dein#add('Shougo/dein.vim')
call dein#add('sainnhe/sonokai')
call dein#add('sheerun/vim-polyglot')
call dein#add('mattn/emmet-vim')
call dein#end()
" inteligent indentation
filetype indent plugin on
set tabstop=4 softtabstop=4 shiftwidth=4 expandtab smartindent
@ -44,6 +33,8 @@ nnoremap <leader>h <C-w>h
nnoremap <leader>j <C-w>j
nnoremap <leader>k <C-w>k
nnoremap <leader>l <C-w>l
nnoremap <leader>L :vs<CR>
nnoremap <leader>J :sp<CR>
nnoremap <silent> <Esc><Esc> :nohlsearch<CR>
set splitright splitbelow
@ -52,6 +43,9 @@ nmap <leader>w :w!<CR>
nmap <leader>W :w!<CR>
nmap <leader>q :wq!<CR>
" easy term-mode
tnoremap <C-\> <C-\><C-n>
" emmet
let g:user_emmet_mode='n' " only on normal mode, thx
let g:user_emmet_install_global = 0
@ -59,7 +53,3 @@ autocmd FileType html,css EmmetInstall
let g:user_emmet_leader_key=','
" checks if plugins are installed; if not, installs them
if dein#check_install()
call dein#install()
endif

@ -0,0 +1 @@
Subproject commit def5d57a1ae5afb1b96ebe83c4652d1c03640f4d

@ -0,0 +1 @@
Subproject commit bdce098fc9e7202d3c555e2dc98c755ca1c23835

@ -0,0 +1 @@
Subproject commit bc8a81d3592dab86334f27d1d43c080ebf680d42

9
.gitmodules vendored Normal file
View File

@ -0,0 +1,9 @@
[submodule ".config/nvim/pack/plugins/start/sonokai"]
path = .config/nvim/pack/plugins/start/sonokai
url = https://github.com/sainnhe/sonokai.git
[submodule ".config/nvim/pack/plugins/start/vim-polyglot"]
path = .config/nvim/pack/plugins/start/vim-polyglot
url = https://github.com/sheerun/vim-polyglot
[submodule ".config/nvim/pack/plugins/start/emmet-vim"]
path = .config/nvim/pack/plugins/start/emmet-vim
url = https://github.com/mattn/emmet-vim