2018-02-28 02:31:44 +01:00
|
|
|
" New Start: A modern Arch workflow built with an emphasis on functionality.
|
|
|
|
" Copyright (C) 2017-2018 Donovan Glover
|
|
|
|
|
|
|
|
if &shell =~# 'fish$'
|
|
|
|
set shell=sh
|
|
|
|
endif
|
2017-10-24 13:46:54 +02:00
|
|
|
|
2017-12-26 00:07:46 +01:00
|
|
|
source ~/.vim/plugins.vim
|
|
|
|
source ~/.vim/config.vim
|
|
|
|
source ~/.vim/keybindings.vim
|
2017-10-24 13:46:54 +02:00
|
|
|
|
2018-10-12 20:37:34 +02:00
|
|
|
colorscheme wal
|
|
|
|
|
2018-10-14 01:42:56 +02:00
|
|
|
" Wal Themes: Tomorrow, Tomorrow_Night, one, materia, material, nord
|
|
|
|
" Other Themes: wombat, solarized, powerline, jellybeans, Tomorrow_Night_Blue,
|
|
|
|
" Tomorrow_Night_Eighties, PaperColor, seoul256, landscape,
|
|
|
|
" darcula, molokai, OldHope, deus
|
|
|
|
let g:lightline = {
|
|
|
|
\ 'colorscheme': 'Tomorrow_Night',
|
|
|
|
\ 'active': {
|
|
|
|
\ 'left': [
|
|
|
|
\ [ 'mode', 'paste' ], [ 'gitbranch' ],
|
|
|
|
\ ['readonly', 'filename', 'modified']
|
|
|
|
\ ]
|
|
|
|
\ },
|
|
|
|
\ 'component_function': {
|
|
|
|
\ 'gitbranch': 'fugitive#head'
|
|
|
|
\ },
|
|
|
|
\ }
|
|
|
|
|
2017-10-24 13:46:54 +02:00
|
|
|
" =================================== Plugin-Specific ===================================
|
|
|
|
|
2017-12-25 00:33:50 +01:00
|
|
|
let g:ale_lint_on_text_changed = 'never' " Do not lint while typing
|
|
|
|
let g:ale_lint_on_insert_leave = 1 " Only lint after leaving insert mode
|
2018-10-14 01:42:56 +02:00
|
|
|
let g:ale_linters = {'javascript': ['standard']}
|
2017-12-25 00:33:50 +01:00
|
|
|
|
2018-10-14 01:42:56 +02:00
|
|
|
" Don't show the separator for vertical splits
|
|
|
|
hi vertsplit ctermfg=0 ctermbg=none
|
2017-12-25 00:33:50 +01:00
|
|
|
|
|
|
|
" Finally, an easier way to read search results
|
|
|
|
hi Search ctermbg=240 ctermfg=255
|
|
|
|
hi IncSearch ctermbg=255 ctermfg=240
|
|
|
|
|
|
|
|
" Disable all vimtex keybindings so we can define our own
|
|
|
|
let g:vimtex_mappings_enabled = 0
|
|
|
|
let g:vimtex_imaps_enabled = 0
|
|
|
|
let g:vimtex_view_method = 'zathura'
|
2018-01-07 05:55:51 +01:00
|
|
|
let g:vimtex_compiler_latexmk = {'build_dir': '.tex'}
|
2018-10-14 01:42:56 +02:00
|
|
|
nnoremap <localleader>f <plug>(vimtex-view)
|
|
|
|
nnoremap <localleader>g <plug>(vimtex-compile)
|
|
|
|
nnoremap <localleader>d <plug>(vimtex-env-delete)
|
|
|
|
nnoremap <localleader>c <plug>(vimtex-env-change)
|
2017-12-25 21:14:32 +01:00
|
|
|
inoremap ]] <plug>(vimtex-delim-close)
|
2017-12-25 00:33:50 +01:00
|
|
|
|
|
|
|
" Easily show lines that go past the character count
|
2018-10-14 01:42:56 +02:00
|
|
|
highlight OverLength ctermbg=240 ctermfg=230
|
|
|
|
call matchadd('OverLength', '\%80v')
|
2017-12-25 00:33:50 +01:00
|
|
|
|
2018-10-14 01:42:56 +02:00
|
|
|
autocmd BufNewFile,BufRead *.ecr setlocal syntax=html
|
|
|
|
autocmd BufNewFile,BufRead *.slang setlocal filetype=slim
|
2018-04-09 23:28:36 +02:00
|
|
|
|
|
|
|
" Disable vim-markdown folding
|
|
|
|
let g:vim_markdown_folding_disabled = 1
|
2018-10-14 01:42:56 +02:00
|
|
|
let g:vim_markdown_math = 1
|
|
|
|
let g:vim_markdown_frontmatter = 1
|
2018-04-09 23:28:36 +02:00
|
|
|
autocmd BufNewFile,BufRead *.md set conceallevel=2
|
|
|
|
|
|
|
|
" Change cursor back to blink after exiting neovim
|
|
|
|
au VimLeave * set guicursor=a:block-blinkon1
|
2018-08-31 19:43:14 +02:00
|
|
|
|
|
|
|
" Ignore syntax concealing for markdown files
|
|
|
|
let g:vim_markdown_conceal = 0
|
|
|
|
let g:tex_conceal = ""
|
|
|
|
let g:vim_markdown_math = 1
|
2018-10-14 01:42:56 +02:00
|
|
|
|
|
|
|
" Hide the status line showing "fzf" when using fzf.vim
|
|
|
|
" NOTE: You must add "showmode" if your setup depends on it
|
|
|
|
autocmd! FileType fzf
|
|
|
|
autocmd FileType fzf set laststatus=0 noshowmode noruler
|
|
|
|
\| autocmd BufLeave <buffer> set laststatus=2 ruler
|