galaxy-sixth-sensey - How to use 'hasktags' in ':Denite outline'
2018/01/27
How to use 'hasktags' in ':Denite outline'

Below lines sets to use hasktags in :Denite outline 😃

call denite#custom#var('outline', 'command', ['hasktags'])
call denite#custom#var('outline', 'options', ['--ignore-close-implementation', '--ctags', '-x'])

But it overwrites the default values, all command will be using hasktags 😭

You should add the like below lines to your .vimrc

augroup VimrcDeniteOutline
    autocmd!
    autocmd BufEnter,BufWinEnter *
        \   call denite#custom#var('outline', 'command', ['ctags'])
        \|  call denite#custom#var('outline', 'options', [])
    autocmd BufEnter,BufWinEnter *.hs
        \   call denite#custom#var('outline', 'command', ['hasktags'])
        \|  call denite#custom#var('outline', 'options', ['--ignore-close-implementation', '--ctags', '-x'])
augroup END

この記事はこちらから修正リクエストを送ることができます。
How to use 'hasktags' in ':Denite outline' - github
ゴミ箱ボタンの左にある、鉛筆ボタンを押してね!