]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: add AsyncRun plugin
[dotfiles.git] / vim / vimrc
index b25648ed9ba61f5f465520d0ae22270cde233017..8a623f4c5a1ebdce65f146749c1f87625fa5d044 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -26,6 +26,10 @@ let g:gitgutter_sign_allow_clobber = 0
 "}}}
 Plug 'alepez/vim-gtest'
 Plug 'alx741/vinfo'
 "}}}
 Plug 'alepez/vim-gtest'
 Plug 'alx741/vinfo'
+Plug 'andrewradev/sideways.vim' " {{{2
+nnoremap <silent> ,h :SidewaysLeft<CR>:delmarks z<CR>
+nnoremap <silent> ,l :SidewaysRight<CR>:delmarks z<CR>
+"}}}
 Plug 'andrewradev/switch.vim'
 Plug 'bling/vim-airline'
 Plug 'chrisbra/checkattach'
 Plug 'andrewradev/switch.vim'
 Plug 'bling/vim-airline'
 Plug 'chrisbra/checkattach'
@@ -40,6 +44,10 @@ Plug 'majutsushi/tagbar'
 Plug 'octol/vim-cpp-enhanced-highlight'
 Plug 'raimondi/delimitmate'
 Plug 'sgeb/vim-diff-fold'
 Plug 'octol/vim-cpp-enhanced-highlight'
 Plug 'raimondi/delimitmate'
 Plug 'sgeb/vim-diff-fold'
+Plug 'skywind3000/asyncrun.vim' " {{{2
+command! -bang -nargs=* -complete=file Make AsyncRun -save=2 -program=make @ <args>
+let g:asyncrun_open = 10
+"}}}
 Plug 'shougo/unite.vim'
 Plug 'shougo/vimproc.vim', {'do': 'make'}
 Plug 'sjl/gundo.vim'
 Plug 'shougo/unite.vim'
 Plug 'shougo/vimproc.vim', {'do': 'make'}
 Plug 'sjl/gundo.vim'
@@ -90,8 +98,6 @@ Plug 'kana/vim-operator-user'
 
 " staging
 " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp
 
 " staging
 " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp
-Plug 'dense-analysis/ale' " {{{2
-let g:ale_echo_msg_format = '[%linter%] %code: %%s'
 
 Plug 'git@github.com:/ram-z/vim-orgmode', { 'branch': 'dev' } " {{{2
 Plug 'vim-scripts/syntaxrange'
 
 Plug 'git@github.com:/ram-z/vim-orgmode', { 'branch': 'dev' } " {{{2
 Plug 'vim-scripts/syntaxrange'
@@ -106,6 +112,8 @@ let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern`
 let g:haskell_enable_typeroles = 1        " to enable highlighting of type roles
 let g:haskell_enable_static_pointers = 1  " to enable highlighting of `static`
 let g:haskell_backpack = 1                " to enable highlighting of backpack keywords
 let g:haskell_enable_typeroles = 1        " to enable highlighting of type roles
 let g:haskell_enable_static_pointers = 1  " to enable highlighting of `static`
 let g:haskell_backpack = 1                " to enable highlighting of backpack keywords
+
+let g:haskell_indent_before_where = 2
 " }}}
 
 Plug 'aklt/plantuml-syntax'
 " }}}
 
 Plug 'aklt/plantuml-syntax'
@@ -573,6 +581,9 @@ let g:airline#extensions#tabline#enabled = 1
 let g:airline#extensions#searchcount#enabled = 0
 let g:airline_powerline_fonts = 1
 
 let g:airline#extensions#searchcount#enabled = 0
 let g:airline_powerline_fonts = 1
 
+let g:asyncrun_status = "stopped"
+let g:airline_section_error = airline#section#create_right(['%{g:asyncrun_status}'])
+
 " checkattach {{{2
 let g:checkattach_filebrowser = 'ranger'
 let g:checkattach_once = 'y'
 " checkattach {{{2
 let g:checkattach_filebrowser = 'ranger'
 let g:checkattach_once = 'y'
@@ -691,6 +702,7 @@ let g:tagbar_iconchars = ['+', '-']
 " tcomments {{{2
 let g:tcomment_textobject_inlinecomment = 'gic'
 let g:tcomment#filetype#guess = 0
 " tcomments {{{2
 let g:tcomment_textobject_inlinecomment = 'gic'
 let g:tcomment#filetype#guess = 0
+"let g:tcomment#options = {'whitespace' : 'no'}
 
 " ultisnips {{{2
 let g:UltiSnipsEditSplit = 'vertical'
 
 " ultisnips {{{2
 let g:UltiSnipsEditSplit = 'vertical'
@@ -748,7 +760,7 @@ if executable('ag')
 end
 nnoremap <silent> [unite]a :<C-u>Unite grep:.::\12\17<CR>
 nnoremap <silent> [unite]A :<C-u>Unite grep:.:-w:\12\17<CR>
 end
 nnoremap <silent> [unite]a :<C-u>Unite grep:.::\12\17<CR>
 nnoremap <silent> [unite]A :<C-u>Unite grep:.:-w:\12\17<CR>
-command! -nargs=+ Ag Unite -input=<args> grep:.:
+command! -nargs=+ Ag Unite grep:.::<args>
 
 " unite-file_rec {{{3
 if executable('ag')
 
 " unite-file_rec {{{3
 if executable('ag')
@@ -799,6 +811,15 @@ let g:ycm_complete_in_comments = 1
 let g:ycm_complete_in_strings  = 1
 let g:ycm_autoclose_preview_window_after_insertion = 0
 
 let g:ycm_complete_in_strings  = 1
 let g:ycm_autoclose_preview_window_after_insertion = 0
 
+let g:ycm_language_server =
+    \ [
+    \   {
+    \     'name': 'haskell',
+    \     'cmdline': [ 'haskell-language-server-wrapper', '--lsp' ],
+    \     'filetypes': [ 'haskell', 'lhaskell'  ]
+    \   },
+    \ ]
+
 " vim-easy-align {{{2
 " start interactive EasyAlign in visual mode
 vmap <Enter> <Plug>(EasyAlign)
 " vim-easy-align {{{2
 " start interactive EasyAlign in visual mode
 vmap <Enter> <Plug>(EasyAlign)