Sanchayan Maity
f3593d60d1
In neovim, we run this after saving a file. However, when opening a Haskell file which is outside of a project or in a directory which has all other Haskell code, it would generate tags for every project in this directory blocking neovim in the mean time.
10 lines
247 B
Fish
10 lines
247 B
Fish
function fasttags --description "Generate tags for Haskell project"
|
|
if test -d .git
|
|
if not test -e tags
|
|
fast-tags --fully-qualified -R .
|
|
else
|
|
fast-tags --fully-qualified -R $argv
|
|
end
|
|
end
|
|
end
|