Beispiel #1
0
 def ShouldUseNowInner(self, request_data):
     if request_data['force_semantic']:
         return True
     disabled_filetypes = self.user_options[
         'filetype_specific_completion_to_disable']
     if not vimsupport.CurrentFiletypesEnabled(disabled_filetypes):
         return False
     return super(OmniCompleter, self).ShouldUseNowInner(request_data)
Beispiel #2
0
 def NativeFiletypeCompletionUsable( self ):
   disabled_filetypes = self._user_options[
     'filetype_specific_completion_to_disable' ]
   return ( vimsupport.CurrentFiletypesEnabled( disabled_filetypes ) and
            self.NativeFiletypeCompletionAvailable() )