Added basic nvim config, replaced vim with nvim

This commit is contained in:
Philipp 2024-03-03 15:33:59 +01:00
parent 624d12439c
commit ea2e6747d9
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
1972 changed files with 126578 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#compdef ant
_ant_does_target_list_need_generating () {
[[ ! -f .ant_targets ]] && return 0
[[ build.xml -nt .ant_targets ]] && return 0
return 1
}
_ant () {
if [[ ! -f build.xml ]]; then
return
fi
if ! _ant_does_target_list_need_generating; then
return
fi
ant -p | awk -F " " 'NR > 5 { print lastTarget } { lastTarget = $1 }' >| .ant_targets
compadd -- "$(cat .ant_targets)"
}
_ant "$@"