diff options
Diffstat (limited to '.vim/pluginsettings.vim')
| -rw-r--r-- | .vim/pluginsettings.vim | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.vim/pluginsettings.vim b/.vim/pluginsettings.vim new file mode 100644 index 0000000..72757f5 --- /dev/null +++ b/.vim/pluginsettings.vim @@ -0,0 +1,58 @@ +" 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 ~ + + " 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 +" }}} |
