Browse Source

Merge branch 'master' of git.juliobiason.me:dotfiles

master
Julio Biason 4 years ago
parent
commit
905dbb9ec4
  1. 1
      bash/editor.bash
  2. 21
      install.sh
  3. 29
      nvim/init.vim
  4. 3
      nvim/spell/pt.utf-8.add
  5. BIN
      nvim/spell/pt.utf-8.add.spl

1
bash/editor.bash

@ -0,0 +1 @@
export EDITOR=nvim

21
install.sh

@ -1,15 +1,5 @@
#!/bin/sh
vim() {
echo "Installing VIM configuration..."
ln -sf vim ~/.vim
echo "Initializing plugins..."
cd ~/.vim/
git submodule init
git submodule update
cd -
}
starship() {
echo "Installing Starship configuration..."
ln -sf $PWD/starship/starship.toml ~/.config/starship.toml
@ -48,7 +38,16 @@ bat() {
fi
}
vim
nvim() {
echo "Installing NeoVim configuration..."
ln -sf ~/nvim ~/.config
cd ~/.config/nvim
git submodule init
git submodule update
cd -
}
nvim
starship
kitty
git

29
nvim/init.vim

@ -37,4 +37,33 @@ augroup END
augroup csv
au FileType csv setlocal list " Display special characters, like tabs (for TSV files)
augroup END
" Rust {{{
let g:rustfmt_autosave = 1
" }}}
" Markdown {{{
augroup markdown
" This is a long abbreviation, but:
" Most of it is simply text, with linebreaks (<CR>).
" There is one thing to take care, though: <CR> is NOT <C-R>.
" <C-R> will call the function (strftime), which will insert the current
" date.
au FileType markdown iab <silent> headr +++<CR>title = ""<CR>date = <C-R>=strftime('%Y-%m-%d')<CR><CR><CR>[taxonomies]<CR>tags = [""]<CR>+++
" This abbreviation adds a modeline to set VIM to change the spell
" lang to portuguese.
au FileType markdown iab langpt <!--<CR>vim:spelllang=pt:<CR>-->
au FileType markdown setlocal spell " enable spell checking
au FileType markdown setlocal textwidth=79 " max line size
au FileType markdown setlocal expandtab " use spaces instead of tabs
augroup END
" }}}
" Shell {{{
augroup shell
au FileType sh setlocal tabstop=4 " display tabs as 4 spaces
au FileType sh setlocal shiftwidth=4 " number of spaces to use for auto-indentation
au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab
augroup END
" }}}

3
nvim/spell/pt.utf-8.add

@ -0,0 +1,3 @@
Movile
MeetUps
MeetUp

BIN
nvim/spell/pt.utf-8.add.spl

Binary file not shown.
Loading…
Cancel
Save