Skip to content

Commit

Permalink
Merge pull request #1118 from sourcy/hasktags-ignore-buildfiles
Browse files Browse the repository at this point in the history
Ignore stack and cabal files from hasktags
  • Loading branch information
gracjan committed Feb 23, 2016
2 parents bcfe134 + 2652b0e commit 560859a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell-commands.el
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ function `xref-find-definitions' after new table was generated."
(format ":!cd %s && %s | %s"
(haskell-session-cabal-dir
(haskell-process-session (car state)))
"find . -type f \\( -name '*.hs' -or -name '*.lhs' -or -name '*.hsc' \\) -not \\( -name '#*' -or -name '.*' \\) -print0"
"find . -type d \\( -path ./.stack-work -o -path ./dist -o -path ./.cabal-sandbox \\) -prune -o -type f \\( -name '*.hs' -or -name '*.lhs' -or -name '*.hsc' \\) -not \\( -name '#*' -or -name '.*' \\) -print0"
"xargs -0 hasktags -e -x"))))
:complete (lambda (state _response)
(when (cdr state)
Expand Down

0 comments on commit 560859a

Please sign in to comment.