fix: crates
This commit is contained in:
parent
ea70650c45
commit
eb3e637462
15 changed files with 487 additions and 14 deletions
15
crates/vim/crate.toml
Normal file
15
crates/vim/crate.toml
Normal file
|
@ -0,0 +1,15 @@
|
|||
[crate]
|
||||
name = "vim"
|
||||
description = "install & configure vim"
|
||||
|
||||
|
||||
[[packages]]
|
||||
name = "neovim"
|
||||
|
||||
[[actions.link]]
|
||||
src = "./ideavimrc"
|
||||
dest = "~/.ideavimrc"
|
||||
|
||||
[[actions.link]]
|
||||
src = "./init.vim"
|
||||
dest = "~/.config/nvim/init.vim"
|
10
crates/vim/ideavimrc
Normal file
10
crates/vim/ideavimrc
Normal file
|
@ -0,0 +1,10 @@
|
|||
source ~/.vimrc
|
||||
|
||||
set scrolloff=5
|
||||
set incsearch
|
||||
|
||||
map Q gq
|
||||
|
||||
Plug 'machakann/vim-highlightedyank'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'wellle/targets.vim'
|
27
crates/vim/init.vim
Normal file
27
crates/vim/init.vim
Normal file
|
@ -0,0 +1,27 @@
|
|||
" vim preferences
|
||||
set number
|
||||
set relativenumber
|
||||
syntax on
|
||||
|
||||
" No arrow keys
|
||||
noremap <Up> <Nop>
|
||||
noremap <Down> <Nop>
|
||||
noremap <Left> <Nop>
|
||||
noremap <Right> <Nop>
|
||||
|
||||
" ensure vim-plug
|
||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||
if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||
endif
|
||||
|
||||
call plug#begin()
|
||||
|
||||
Plug 'ThePrimeagen/vim-be-good'
|
||||
Plug 'machakann/vim-highlightedyank'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'wellle/targets.vim'
|
||||
Plug 'vim-scripts/loremipsum'
|
||||
|
||||
call plug#end()
|
Loading…
Add table
Add a link
Reference in a new issue