setlocal ts=2 sw=2 expandtab " tags call CmdAlias('hasktags', '!hasktags -c .') " from " https://raw.githubusercontent.com/begriffs/haskell-vim-now/master/git-hscope call CmdAlias('codex', 'call system("haskell-ctags")call LoadHscope()') call CmdAlias('Cc', 'Clap commits') map ctg :codex set tags=tags;/,codex.tags;/ " nnoremap cgd :cs find g =expand("") nnoremap :cs find c =expand("") " set cscopeprg=do_at_stack_root\ hscope set csre set csto=1 " search codex tags first set nocst " set cscopequickfix=s-,c-,d-,i-,t-,e-,a- function! LoadHscope() set nocscopeverbose " suppress 'duplicate connection' error let hsf = findfile("hscope.out", ".;") if filereadable(hsf) exe "cs add " . hsf elseif $HSCOPE_DB != "" cs add $HSCOPE_DB endif set cscopeverbose endfunction " au BufEnter /*.hs call LoadHscope() call deoplete#enable() inoremap pumvisible() ? "\" : "\" " vim-lsp if executable('haskell-language-server-wrapper') au User lsp_setup call lsp#register_server({ \ 'name': 'hls', \ 'cmd': {server_info->['haskell-language-server-wrapper', '--lsp']}, \ 'allowlist': ['haskell'], \ }) endif