dotfiles

A steaming hot pile of sh...ell scripts and configuration files.
git clone https://kaka.farm/~git/dotfiles
Log | Files | Refs

init.vim (2798B)


      1 call plug#begin('~/.config/nvim/plugged')
      2 
      3 Plug 'jceb/vim-orgmode'
      4 
      5 Plug 'junegunn/seoul256.vim'
      6 Plug 'junegunn/vim-easy-align'
      7 
      8 Plug 'mbbill/undotree'
      9 Plug 'easymotion/vim-easymotion'
     10 Plug 'chrisbra/NrrwRgn'
     11 Plug 'tpope/vim-fugitive'
     12 Plug 'tpope/vim-commentary'
     13 " Plug 'davidhalter/jedi-vim'
     14 
     15 " Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
     16 " Plug 'scrooloose/syntastic'
     17 
     18 Plug 'osyo-manga/vim-watchdogs'
     19 Plug 'thinca/vim-quickrun'
     20 Plug 'osyo-manga/shabadou.vim'
     21 Plug 'jceb/vim-hier'
     22 Plug 'dannyob/quickfixstatus'
     23 
     24 Plug 'benekastah/neomake'
     25 
     26 Plug 'eagletmt/neco-ghc', { 'for': 'hs' }
     27 Plug 'eagletmt/ghcmod-vim', { 'for': 'hs' }
     28 Plug 'bitc/vim-hdevtools', { 'for': 'hs' }
     29 Plug 'lukerandall/haskellmode-vim', { 'for': 'hs' }
     30 Plug 'Shougo/vimproc', { 'for': 'hs' }
     31 Plug 'dan-t/vim-hsimport', { 'for': 'hs' }
     32 
     33 Plug 'majutsushi/tagbar'
     34 
     35 Plug 'honza/vim-snippets'
     36 Plug 'Shougo/neosnippet.vim'
     37 
     38 Plug 'Shougo/neocomplete.vim'
     39 
     40 Plug 'morhetz/gruvbox'
     41 Plug 'airblade/vim-gitgutter'
     42 
     43 Plug 'vim-pandoc/vim-pandoc'
     44 Plug 'vim-pandoc/vim-pandoc-syntax'
     45 
     46 call plug#end()
     47 
     48 syntax on
     49 filetype plugin on
     50 
     51 "autocmd! BufWritePost * Neomake
     52 
     53 let g:haddock_browser = "firefox"
     54 
     55 " set statusline+=%#warningmsg#
     56 " set statusline+=%#{SyntasticStatuslineFlag()}
     57 " set statusline+=%*
     58 " let g:syntastic_always_populate_loc_list = 1
     59 " let g:syntastic_auto_loc_list = 1
     60 " let g:syntastic_check_on_open = 1
     61 " let g:syntastic_check_on_wq = 0
     62 
     63 setlocal omnifunc=necoghc#omnifunc
     64 
     65 let g:necoghc_enable_detailed_browse = 1
     66 
     67 " Plugin key-mappings.
     68 imap <C-k>     <Plug>(neosnippet_expand_or_jump)
     69 smap <C-k>     <Plug>(neosnippet_expand_or_jump)
     70 xmap <C-k>     <Plug>(neosnippet_expand_target)
     71 
     72 " SuperTab like snippets behavior.
     73 "imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
     74 "\ "\<Plug>(neosnippet_expand_or_jump)"
     75 "\: pumvisible() ? "\<C-n>" : "\<TAB>"
     76 "smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
     77 "\ "\<Plug>(neosnippet_expand_or_jump)"
     78 "\: "\<TAB>"
     79 
     80 " For conceal markers.
     81 if has('conceal')
     82   set conceallevel=2 concealcursor=niv
     83 endif
     84 
     85 
     86 set ruler
     87 set number
     88 
     89 
     90 " Up and down through a wrapped line
     91 " https://stackoverflow.com/questions/20975928/moving-the-cursor-through-long-soft-wrapped-lines-in-vim
     92 noremap <expr> j (v:count == 0 ? 'gj' : 'j')
     93 noremap <expr> k (v:count == 0 ? 'gk' : 'k')
     94 
     95 hi ghcmodType ctermbg=yellow
     96 let g:ghcmod_type_highlight = 'ghcmodType'
     97 
     98 let g:necoghc_enable_detailed_browse = 1
     99 
    100 " set tabstop=4 " convert tabs into tabstop spaces
    101 " set noexpandtab " don't convert tabs into spaces
    102 " " set softtabstop=4
    103 " set shiftwidth=4
    104 " set shiftround
    105 "set noexpandtab
    106 
    107 autocmd FileType cabal setlocal softtabstop=4 shiftwidth=4 tabstop=4 expandtab
    108 autocmd FileType haskell setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab formatprg=stylish-haskell\ -c\ ~/.stylish-haskell.conf