Skip to content

Instantly share code, notes, and snippets.

@Ivoz
Created February 16, 2013 22:27
Show Gist options
  • Save Ivoz/4969005 to your computer and use it in GitHub Desktop.
Save Ivoz/4969005 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
#
# Copyright (C) 2011, 2012, 2013 Strahinja Val Markovic <[email protected]>
#
# This file is part of YouCompleteMe.
#
# YouCompleteMe is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# YouCompleteMe is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.
from completers.completer import Completer
class PythonCompleter( Completer ):
def SupportedFiletypes( self ):
return ['python']
def AsyncCandidateRequestReadyInner( self ):
return True
def CandidatesFromStoredRequestInner( self ):
return [{
'word' : 'testing',
'abbr' : 'test',
'menu' : 'This is a test',
'kind' : 'v',
'info' : 'This is an automated test of completion',
'dup' : 1,
'empty': 1,
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment