summaryrefslogtreecommitdiff
path: root/.vim/pluginsettings.vim
blob: b1d3a175bf6068b374a98031f84fec53b06e9097 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
" 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 NERDTreeShowHidden     = 1
	let NERDTreeWinPos         = "right"
	let NERDTreeIgnore         = ['\.swp$', '\~$'] " Ignore file, ending with .swp and ~

	" Do not save blank screens, solves https://github.com/preservim/nerdtree/issues/745
	set sessionoptions-=blank
" }}}

" 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
" }}}

" texty-office {{{
	let g:texty_office_executable_directory='/home/kamen/Programming/GitLab-repos/texty-office'
	" let g:texty_office_pretty_mode=1
" }}}

" popup_scrollbar {{{
	let g:popup_scrollbar_auto = 1
	let g:popup_scrollbar_shape = {
		\ 'head': '',
		\ 'body': '│',
		\ 'tail': '', }
	let g:popup_scrollbar_highlight = 'Comment'
" }}}