Replies: 1 comment
-
Closing because it looks like this is already discussed here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been playing around with streamlining my config and was trying to hide the registration of the
xcodebuild
keymaps behind some sort of trigger that indicated the directory i opened was a valid Xcode project directory.I started off putting the keymap registrations under
after/ftplugin
but that doesn't offer build commands if i just open the root directory and get presented withoil.nvim
. Is there any check i can run in myxcodebuild
config that would be able to recognize when a valid project has been opened?I was able to put a check for a
Package.swift
withrequire('xcodebuild.util').file_exists("Package.swift")
but that doesn't check for.xcodeproj
or.xcworkspace
directories because those aren't statically named, and therefore would require me to check against the internalsettings
of thexcodebuild
config object for the name that was saved after having run:XcodebuildSetup
.An event would be awesome for this, but is there a way I haven't noticed that would work well to achieve the same result?
Beta Was this translation helpful? Give feedback.
All reactions