Moved completer.py under completers
This commit is contained in:
parent
f17e45bdc3
commit
658e1393b4
@ -17,7 +17,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from completer import Completer
|
||||
from completers.completer import Completer
|
||||
import vim
|
||||
import vimsupport
|
||||
import ycm_core
|
||||
|
@ -17,7 +17,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from completer import Completer
|
||||
from completers.completer import Completer
|
||||
import vim
|
||||
import vimsupport
|
||||
import ycm_core
|
||||
|
@ -100,6 +100,12 @@ class YouCompleteMe( object ):
|
||||
return False
|
||||
|
||||
|
||||
def GetDiagnosticsForCurrentFile( self ):
|
||||
if self.FiletypeCompletionEnabledForCurrentFile():
|
||||
return self.GetFiletypeCompleterForCurrentFile().GetDiagnosticsForCurrentFile()
|
||||
return []
|
||||
|
||||
|
||||
def OnCurrentIdentifierFinished( self ):
|
||||
self.identcomp.OnCurrentIdentifierFinished()
|
||||
|
||||
@ -107,12 +113,6 @@ class YouCompleteMe( object ):
|
||||
self.GetFiletypeCompleterForCurrentFile().OnCurrentIdentifierFinished()
|
||||
|
||||
|
||||
def GetDiagnosticsForCurrentFile( self ):
|
||||
if self.FiletypeCompletionEnabledForCurrentFile():
|
||||
return self.GetFiletypeCompleterForCurrentFile().GetDiagnosticsForCurrentFile()
|
||||
return []
|
||||
|
||||
|
||||
def _PathToCompletersFolder():
|
||||
dir_of_current_script = os.path.dirname( os.path.abspath( __file__ ) )
|
||||
return os.path.join( dir_of_current_script, 'completers' )
|
||||
@ -122,7 +122,6 @@ def _PathToFiletypeCompleterPluginLoader( filetype ):
|
||||
return os.path.join( _PathToCompletersFolder(), filetype, 'hook.py' )
|
||||
|
||||
|
||||
|
||||
def CompletionStartColumn():
|
||||
"""Returns the 0-based index where the completion string should start. So if
|
||||
the user enters:
|
||||
|
Loading…
x
Reference in New Issue
Block a user