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

筆者プロフィール

my-latest-logo

aiya000(あいや)

せつラボ 〜圏論の基本〜」 「せつラボ2~雲と天使と関手圏~」 「矢澤にこ先輩といっしょに代数!」を書いています!

強い静的型付けとテストを用いて、バグを防ぐのが好き。Haskell・TypeScript。