nvim: init.vim: Add Purescript support
This commit is contained in:
parent
58e5137876
commit
9dfacd2c7b
1 changed files with 19 additions and 1 deletions
|
@ -79,6 +79,9 @@ Plug 'vim-erlang/vim-erlang-tags', { 'for': 'erlang' }
|
||||||
Plug 'vim-erlang/vim-erlang-runtime', { 'for': 'erlang' }
|
Plug 'vim-erlang/vim-erlang-runtime', { 'for': 'erlang' }
|
||||||
Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
|
Plug 'vim-erlang/vim-erlang-omnicomplete', { 'for': 'erlang' }
|
||||||
Plug 'vim-erlang/vim-erlang-compiler', { 'for': 'erlang' }
|
Plug 'vim-erlang/vim-erlang-compiler', { 'for': 'erlang' }
|
||||||
|
" Purescript
|
||||||
|
Plug 'purescript-contrib/purescript-vim'
|
||||||
|
Plug 'frigoeu/psc-ide-vim'
|
||||||
" Miscellaneous
|
" Miscellaneous
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'tpope/vim-repeat'
|
Plug 'tpope/vim-repeat'
|
||||||
|
@ -94,7 +97,6 @@ Plug 'lifecrisis/vim-difforig'
|
||||||
Plug 'dag/vim-fish'
|
Plug 'dag/vim-fish'
|
||||||
Plug 'pbrisbin/vim-syntax-shakespeare'
|
Plug 'pbrisbin/vim-syntax-shakespeare'
|
||||||
Plug 'lifepillar/pgsql.vim'
|
Plug 'lifepillar/pgsql.vim'
|
||||||
Plug 'purescript-contrib/purescript-vim'
|
|
||||||
Plug 'mbbill/undotree'
|
Plug 'mbbill/undotree'
|
||||||
Plug 'milkypostman/vim-togglelist'
|
Plug 'milkypostman/vim-togglelist'
|
||||||
Plug 'jpalardy/vim-slime'
|
Plug 'jpalardy/vim-slime'
|
||||||
|
@ -360,6 +362,21 @@ augroup haskell_maps
|
||||||
au FileType haskell nmap <Leader>hi :exe ':HoogleInfo ' . expand('<cword>')<CR>
|
au FileType haskell nmap <Leader>hi :exe ':HoogleInfo ' . expand('<cword>')<CR>
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
augroup psc_ide_maps
|
||||||
|
au!
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pt :<C-U>call Ptype(PgetKeyword(), v:true)<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pT :<C-U>call PaddTypeAnnotation(matchstr(getline(line(".")), '^\s*\zs\k\+\ze'))<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>ps :<C-U>call PapplySuggestion()<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pa :<C-U>call PaddTypeAnnotation()<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pi :<C-U>call PimportIdentifier(PgetKeyword())<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pr :<C-U>call Pload()<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pp :<C-U>call Ppursuit(PgetKeyword())<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pq :<C-U>call PaddImportQualifications()<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pQ :<C-U>call PremoveImportQualifications()<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pg :<C-U>call PgoToDefinition(PgetKeyword())<CR>
|
||||||
|
au FileType purescript nmap <buffer> <silent> <Leader>pc :<C-U>call PcaseSplit<SPACE>
|
||||||
|
augroup END
|
||||||
|
|
||||||
augroup c_maps
|
augroup c_maps
|
||||||
au!
|
au!
|
||||||
au FileType c nmap <Leader>ct :NeomakeSh ctags -R .<CR>
|
au FileType c nmap <Leader>ct :NeomakeSh ctags -R .<CR>
|
||||||
|
@ -453,6 +470,7 @@ augroup indentation_defaults
|
||||||
autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2
|
autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2
|
||||||
autocmd BufRead,BufNewFile */gstreamer-*/*.[ch] set et sw=2
|
autocmd BufRead,BufNewFile */gstreamer-*/*.[ch] set et sw=2
|
||||||
autocmd BufRead,BufNewFile */pulseaudio/*.[ch] set et sw=4 tw=128
|
autocmd BufRead,BufNewFile */pulseaudio/*.[ch] set et sw=4 tw=128
|
||||||
|
autocmd BufRead,BufNewFile *.purs set et sw=2 sts=2 si
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup spell_check
|
augroup spell_check
|
||||||
|
|
Loading…
Reference in a new issue