~yerinalexey/dotfiles

ref: b75055cfb2820b41efd348481e49a2f487355931 dotfiles/nvim/hooks.vim -rw-r--r-- 501 bytes
b75055cf — Alexey Yerin bottom: fix indents 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" Autocmd hooks

augroup vimrc
  au!

  " Reset cursor after exiting
  au VimLeave * :set guicursor=a:ver100-blinkon0

  " Source .vim files after save
  au BufWritePost *.vim :source %

  " Spellcheck commit messages and markdown files
  au FileType gitcommit,markdown :setlocal spell spelllang=en,ru

  " Reload sway when related config change
  au BufWritePost ~/.config/sway/config,~/.config/waybar/* :silent !swaymsg reload &

  " Auto-format Rust code
  au BufWritePre *.rs :RustFmt
augroup END