summaryrefslogtreecommitdiff
path: root/.vim/startup/pluginsettings.vim
blob: 3b8e87e06c080943b44bedd8a14d0434aa67748b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
" DelimitMate {{{
	let delimitMate_expand_cr = 1
	" Don't autocomplete diamond brackets in HTML (compatibility with closetag plugin)
	autocmd FileType html let b:delimitMate_matchpairs='(:),[:],{:}'
" }}}

" NERDTree {{{
	" Toggle NERDTree with Tab
	nmap <Tab> :NERDTreeToggle<CR>

	let NERDTreeCustomOpenArgs = {'file':{'where':'t'}} " Open file in new tab, doesn't work only for double-click
	let NERDTreeShowHidden     = 1
	let NERDTreeWinPos         = "right"
	let NERDTreeIgnore         = ['\.swp$', '\~$'] " Ignore file, ending with .swp and ~
" }}}

" Undotree {{{
	" Toggle undotree with F5
	nmap <F5> :UndotreeToggle<CR>  
	
	let g:undotree_WindowLayout       = 2
	let g:undotree_ShortIndicators    = 1 " e.g. using 'd' instead of 'days' to save some space.
	let g:undotree_SetFocusWhenToggle = 1 " if set, let undotree window get focus after being opened, otherwise focus will stay in current window.
	let g:undotree_TreeNodeShape      = '*'
	let g:undotree_DiffCommand        = "diff"
" }}}

" Tabman {{{
	let g:tabman_toggle = '<S-Tab>'
	let g:tabman_side   = 'right'
" }}}

" SuperTab {{{
	let g:SuperTabDefaultCompletionType = "context"
" }}}

" ALE {{{
	map <F2> <ESC>:ALERename<CR>
	map gd <ESC>:ALEGoToDefinition<CR>
	map gi <ESC>:ALEHover<CR>
	map ge <ESC>:ALEDetail<CR>

	set omnifunc=ale#completion#OmniFunc
	let g:ale_completion_enabled = 1

	let g:ale_floating_preview = 1 " Use floating window
	let g:ale_floating_window_border = ['│', '─', '╭', '╮', '╯', '╰'] " Nicer borders
	
	let g:ale_typescript_tsserver_use_global = 1 " Use global tsserver package
" }}}