mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
62 lines
1.3 KiB
VimL
62 lines
1.3 KiB
VimL
|
|
"misc
|
|
set mouse=
|
|
set encoding=utf-8
|
|
set number relativenumber
|
|
set list
|
|
set nowrap
|
|
set scrolloff=9
|
|
|
|
|
|
"configure plugins
|
|
let g:gitgutter_sign_removed = "\uE0B8"
|
|
let g:gitgutter_sign_removed_first_line = "\uE0BC"
|
|
let g:gitgutter_sign_modified_removed = '~~'
|
|
set updatetime=500
|
|
highlight GitGutterAdd ctermfg=10
|
|
highlight GitGutterChange ctermfg=11
|
|
highlight GitGutterDelete ctermfg=9
|
|
|
|
let g:startify_custom_header = "''"
|
|
let g:startify_custom_indices = map(range(1,100), 'string(v:val)')
|
|
|
|
|
|
"auto formatting
|
|
let g:formatters_python = ['black']
|
|
|
|
let g:formatdef_nixpkgsfmt="'nixpkgs-fmt'"
|
|
let g:formatters_nix = ['nixpkgsfmt']
|
|
|
|
let g:formatdef_prettier="'prettier --stdin-filepath ' . expand('%:p')"
|
|
let g:formatters_js = ['prettier']
|
|
let g:formatters_json = ['prettier']
|
|
let g:formatters_ts = ['prettier']
|
|
let g:formatters_yaml = ['prettier']
|
|
|
|
autocmd BufWritePre * :Autoformat
|
|
|
|
|
|
"menus
|
|
nnoremap <silent> <space>e :NERDTreeFocus<CR>:vertical resize 30<CR>
|
|
nnoremap <silent> <space>o :Startify<CR>
|
|
|
|
|
|
"buffers
|
|
nnoremap <silent> <space>w :q<CR>
|
|
nnoremap <silent> <space>q :bd<CR>
|
|
nnoremap <silent> <space>d :bnext<CR>
|
|
nnoremap <silent> <space>a :bprevious<CR>
|
|
|
|
|
|
"window shortcuts
|
|
nnoremap <space>h <C-W>h
|
|
nnoremap <space>j <C-W>j
|
|
nnoremap <space>k <C-W>k
|
|
nnoremap <space>l <C-W>l
|
|
nnoremap <space>v <C-W>v
|
|
nnoremap <space>s <C-W>s
|
|
|
|
|
|
lua << EOF
|
|
require("bufferline").setup{}
|
|
EOF
|