Added denite and other goodies

This commit is contained in:
Carolyn Saunders 2016-11-08 23:46:43 -08:00
parent 90e76e08fa
commit fe75bd8d0d

View file

@ -4,6 +4,7 @@ Plug 'HerringtonDarkholme/yats', {'for' : 'typescript'}
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'mhartington/deoplete-typescript', {'for' : 'typescript'}
Plug 'zchee/deoplete-go', {'do': 'make', 'for' : 'go'}
Plug 'Quramy/tsuquyomi', {'for' : 'typescript'}
Plug 'pangloss/vim-javascript', {'for' : 'javascript'}
Plug 'Quramy/vim-js-pretty-template', {'for' : 'javascript'}
@ -17,17 +18,39 @@ Plug 'scrooloose/nerdcommenter'
Plug 'neovimhaskell/haskell-vim', {'for' : 'haskell'}
Plug 'scrooloose/nerdtree', {'on' : 'NERDTreeToggle'}
Plug 'mileszs/ack.vim'
Plug 'ctrlpvim/ctrlp.vim'
"Plug 'ctrlpvim/ctrlp.vim'
Plug 'easymotion/vim-easymotion'
Plug 'neomake/neomake'
Plug 'chrisbra/Colorizer'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-fugitive'
Plug 'Yggdroot/indentLine'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'fatih/vim-go', {'for' : 'go'}
Plug 'rust-lang/rust.vim', {'for' : 'rust'}
Plug 'sebastianmarkow/deoplete-rust', {'for' : 'rust'}
Plug 'cespare/vim-toml', {'for' : 'toml'}
Plug 'elixir-lang/vim-elixir', {'for' : 'elixir'}
Plug 'slashmili/alchemist.vim', {'for' : 'elixir'}
Plug 'plasticboy/vim-markdown', {'for' : 'markdown'}
Plug 'reedes/vim-pencil', {'for' : 'markdown'}
Plug 'reedes/vim-lexical', {'for' : 'markdown'}
Plug 'ElmCast/elm-vim', {'for' : 'elm'}
Plug 'xolox/vim-misc'
Plug 'xolox/vim-easytags'
Plug 'janko-m/vim-test'
Plug 'kassio/neoterm'
Plug 'powerman/vim-plugin-AnsiEsc'
Plug 'Shougo/denite.nvim'
call plug#end()
set relativenumber
let test#strategy = "neoterm"
let g:elm_format_autosave = 1
"set tags=tags;/
set tags=./tags,tags;$HOME
let g:easytags_dynamic_files = 1
let g:easytags_async = 1
set ttyfast
set number
set hidden
set nocompatible
@ -39,10 +62,17 @@ let g:deoplete#enable_at_startup = 1
if !exists('g:deoplete#omni#input_patterns')
let g:deoplete#omni#input_patterns = {}
endif
au FileType elm set sw=4 sts=4 ts=4
let g:deoplete#omni_patterns = {}
let g:deoplete#omni_patterns.elm = '\.'
let g:deoplete#sources#go#sort_class = ['func', 'type', 'var', 'const']
let g:deoplete#sources#go#align_class = 1
let g:elm_detailed_complete = 1
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
autocmd FileType typescript nmap <buffer> <Leader>i : <C-u>echo tsuquyomi#hint()<CR>
autocmd FileType elm nmap <buffer> <Leader>i :ElmShowDocs<CR>
let g:quantum_black = 1
let g:quantum_italics = 1
@ -51,6 +81,15 @@ if has("termguicolors")
set termguicolors
endif
augroup pencil
autocmd!
autocmd FileType markdown,mkd call pencil#init()
\ | call lexical#init()
\ | call litecorrect#init()
\ | call textobj#quote#init()
\ | call textobj#sentence#init()
augroup END
set clipboard+=unnamedplus
"Tabs
@ -63,10 +102,24 @@ function! neomake#makers#ft#typescript#EnabledMakers()
return ['tslint']
endfunction
function! neomake#makers#ft#elixir#credo()
return {
\ 'exe': 'mix',
\ 'args': ['credo', 'list', '--strict', '%:p', '--format=oneline',
\ 'readability'],
\ 'errorformat': '[%t] %. %f:%l:%c %m'
\ }
endfunction
function! neomake#makers#ft#elixir#EnabledMakers()
return ['credo']
endfunction
let g:ackprg = 'ag --nogroup --nocolor --column'
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
let g:ctrlp_map = '<Leader>p'
call denite#custom#var('file_rec', 'command',
\ ['ag', '--follow', '--nocolor', '--nogroup', '-g', ''])
set autoindent
set copyindent
@ -74,14 +127,19 @@ set smarttab
set smartcase
:imap fd <Esc>
"Leader keys
let mapleader="\<Space>"
"neoterm
noremap <leader>mt :T mix test<CR>
noremap <leader>p :Denite file_rec buffer<CR>
noremap <Leader>w :w<CR>
noremap <Leader>W :w !sudo tee % > /dev/null
noremap <Leader>q :q<CR>
noremap <Leader>r :%s/
noremap <Leader>t :terminal <CR>
noremap <Leader>f :Ack
noremap <Leader>n :NERDTreeToggle<CR>
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>
nnoremap <leader>bd :bd<CR>
@ -101,3 +159,13 @@ let g:airline_theme = "quantum"
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_types = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
au FileType go nmap <leader>rt <Plug>(go-run-tab)
au FileType go nmap <Leader>rs <Plug>(go-run-split)
au FileType go nmap <Leader>rv <Plug>(go-run-vertical)