def __init__(self, nvim):
super(Source, self).__init__(nvim)
# dependency check
try:
from distutils.spawn import find_executable
if not find_executable("sourcekitten"):
self.message('error', 'Can not find sourcekitten for completion, you need to install https://github.com/jpsim/SourceKitten')
if not find_executable("swift") and self._check_xcode_path():
self.message('error', 'Can not find swift or XCode: https://swift.org')
except Exception as ex:
logger.exception(ex)
self.__spm = self.nvim.eval('swift_completer#get_spm_module()')
self.__target = self.nvim.eval('swift_completer#get_target()')
self.__sdk = self.nvim.eval('swift_completer#get_sdk()')
swift-completer.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录