.dotfiles/nvim/pluginoptions.vim

103 lines
2.6 KiB
VimL
Raw Normal View History

2020-10-25 17:51:05 +01:00
" PLUGIN OPTIONS
2020-10-25 18:15:53 +01:00
" NERD TREE SETUP
" =========================
let NERDTreeIgnore=['\.pyc$', '\~$', '__pycache__'] "ignore files in NERDTree
2021-09-05 22:28:02 +02:00
let NERDTreeChDirMode=2
highlight Directory guifg=#D1D5DB ctermfg=blue
highlight NERDTreeHelp guifg=#4B5563 ctermfg=gray
highlight NERDTreeCWD guifg=#9CA3AF ctermfg=gray
highlight NERDTreeFlags guifg=#4B5563 ctermfg=green
highlight NERDTreeExecFile guifg=#DC2626 ctermfg=green
2021-09-06 13:45:22 +02:00
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
2020-10-25 17:51:05 +01:00
" AIRLINE SETUP
2020-10-25 18:15:53 +01:00
" =========================
2020-10-25 17:51:05 +01:00
" sections
let g:airline_section_y = ""
let g:airline_section_z = "%l/%L:%c"
let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}"
" other stuff
let g:airline_theme='luna'
let g:airline_powerline_fonts = 1
let g:airline_inactive_collapse=1
let g:airline_skip_empty_sections = 1
let g:airline#extensions#whitespace#enabled = 0
let g:airline#extensions#wordcount#enabled = 0
let g:airline#extensions#keymap#enabled = 0
set ttimeoutlen=50
2020-10-25 18:15:53 +01:00
" GITGUTTER SETUP
" =========================
2020-10-25 17:51:05 +01:00
let g:gitgutter_sign_added = '∙'
let g:gitgutter_sign_modified = '∙'
let g:gitgutter_sign_removed = '∙'
let g:gitgutter_sign_modified_removed = '∙'
augroup VimDiff
autocmd!
autocmd VimEnter,FilterWritePre * if &diff | GitGutterDisable | endif
augroup END
2020-10-25 18:15:53 +01:00
" VIMWIKI SETUP
" =========================
2021-05-31 18:27:06 +02:00
let g:vimwiki_list = [{'path': '~/.notes/',
\ 'syntax': 'markdown', 'ext': '.md'}]
let g:vimwiki_hl_headers = 1
let g:vimwiki_listsyms = ' X'
2020-10-25 17:51:05 +01:00
2020-10-25 18:15:53 +01:00
" VIMTEX SETUP
" =========================
2020-12-19 19:40:33 +01:00
let g:vimtex_compiler_engine = 'lualatex'
let g:vimtex_quickfix_mode = 0
2020-10-25 17:51:05 +01:00
let g:tex_flavor = 'latex'
2020-12-19 19:40:33 +01:00
let g:vimtex_compiler_method = 'latexmk'
let g:vimtex_compiler_latexmk = {
\ 'backend' : 'nvim',
\ 'background' : 1,
\ 'build_dir' : '',
\ 'callback' : 1,
\ 'continuous' : 1,
\ 'executable' : 'latexmk',
\ 'hooks' : [],
\ 'options' : [
\ '-pdflatex=lualatex',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ],
\}
2020-10-25 17:51:05 +01:00
2020-10-25 18:15:53 +01:00
" COLORS.LUA SETUP
" =========================
2020-10-25 17:51:05 +01:00
lua require'colorizer'.setup()
2020-10-25 18:15:53 +01:00
" TMUX SETUP
" =========================
2020-10-25 17:51:05 +01:00
let g:tmuxcomplete#trigger = ''
" GOYO
2020-10-25 18:15:53 +01:00
" =========================
2020-10-25 17:51:05 +01:00
function! s:goyo_enter()
set noshowcmd
set scrolloff=999
endfunction
function! s:goyo_leave()
set showcmd
set scrolloff=1
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
2021-11-13 11:03:31 +01:00
let g:goyo_width = 120