Exemple #1
0
 def __init__(self, vim):
     Base.__init__(self, vim)
     self.name = 'solargraph'
     self.filetypes = ['ruby']
     self.mark = '[solar]'
     self.rank = 900
     self.input_pattern = r'\.[a-zA-Z0-9_?!]+|[a-zA-Z]\w*::\w*'
     self.is_server_started = False
Exemple #2
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lsc'
        self.mark = '[lsc]'
        self.rank = 500
        self.input_pattern = r'[^\w\s]$'
        self.vars = {}
Exemple #3
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'vsnip'
        self.mark = '[vsnip]'
        self.rank = 1000
        self.input_pattern = r'\w\+$'
        self.min_pattern_length = 1
        self.vars = {}
Exemple #4
0
 def __init__(self, vim):
     Base.__init__(self, vim)
     self.name = 'rtags'
     self.mark = '[rtags]'
     self.filetypes = ['c', 'cpp', 'objc', 'objcpp']
     self.rank = 500
     self.is_bytepos = True
     self.min_pattern_length = 1
     self.input_pattern = (r'[^. \t0-9]\.\w*|'
                           r'[^. \t0-9]->\w*|'
                           r'[a-zA-Z_]\w*::\w*')
 def __init__(self, vim):
     Base.__init__(self, vim)
     self.name = 'rtags'
     self.mark = '[rtags]'
     self.filetypes = ['c', 'cpp', 'objc', 'objcpp']
     self.rank = 500
     self.is_bytepos = True
     self.min_pattern_length = 1
     self.input_pattern = (r'[^. \t0-9]\.\w*|'
                           r'[^. \t0-9]->\w*|'
                           r'[a-zA-Z_]\w*::\w*')
Exemple #6
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'calc'
        self.mark = '[calc]'
        self.rank = 10
        self.vars = {}
        self.input_pattern = self.regex()
        self.ignore_pattern = r'^(?:\d+(?:\.\d+)?|\s)+$'
        self.is_volatile = True
        self.min_pattern_length = 3
Exemple #7
0
    def __init__(self, vim):
        """
        Base init
        """
        Base.__init__(self, vim)

        self.name = 'github'
        self.mark = '[GH]'
        self.filetypes = ['gitcommit', 'magit']
        self.debug_enabled = True
        self.input_pattern = '#'
Exemple #8
0
 def __init__(self, vim):
     Base.__init__(self, vim)
     self.name = "typescript"
     self.mark = self.vim.vars['nvim_typescript#completion_mark']
     self.filetypes = ["typescript", "tsx", "typescript.tsx", "javascript", "jsx", "javascript.jsx"] \
         if self.vim.vars["nvim_typescript#javascript_support"] \
         else ["typescript", "tsx", "typescript.tsx", "vue"] \
         if self.vim.vars["nvim_typescript#vue_support"] \
         else ["typescript", "tsx", "typescript.tsx"]
     self.rank = 1000
     self.min_pattern_length = 1
     self.input_pattern = r'(\.|::)\w*'
Exemple #9
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lsp'
        self.mark = '[lsp]'
        self.rank = 500
        self.input_pattern = r'[^\w\s]$'
        self.is_volatile = True
        self.vars = {}
        self.vim.vars['deoplete#source#lsp#_results'] = []
        self.vim.vars['deoplete#source#lsp#_success'] = False
        self.vim.vars['deoplete#source#lsp#_requested'] = False
        self.vim.vars['deoplete#source#lsp#_prev_input'] = ''
Exemple #10
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lamp'
        self.mark = '[LAMP]'
        self.rank = 10000
        self.input_pattern = r'.$'
        self.min_pattern_length = 0
        self.is_volatile = True
        self.sorters = []
        self.vars = {}
        self.dub = True
        self.id = 0
Exemple #11
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lfx'
        self.mark = '[U]'
        self.rank = 1001
        # self.input_pattern = r'[^\w\s]$'
        self.input_pattern = r'(\.|::|->)\w*$'
        self.min_pattern_length = 1
        self.is_volatile = True

        self.vim.vars['deoplete#source#lfx#_results'] = []
        self.vim.vars['deoplete#source#lfx#_requested'] = False
        self.vim.vars['deoplete#source#lfx#_prev_input'] = ''
Exemple #12
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lsp'
        self.mark = '[lsp]'
        self.rank = 500
        self.input_pattern = r'[^\w\s]$'
        self.vars = {}
        self.vim.vars['deoplete#source#vim_lsp#_results'] = []
        self.vim.vars['deoplete#source#vim_lsp#_context'] = {}
        self.vim.vars['deoplete#source#vim_lsp#_requested'] = False

        self.server_names = None
        self.server_capabilities = {}
        self.server_infos = {}
Exemple #13
0
 def __init__(self, vim):
     Base.__init__(self, vim)
     self.name = "typescript"
     self.mark = self.vim.vars['nvim_typescript#completion_mark']
     self.rank = 1000
     self.min_pattern_length = 1
     self.max_abbr_width = 0
     self.max_kind_width = 0
     self.max_menu_width = 0
     self.input_pattern = r'(\.|::)\w*'
     self.filetypes = ["typescript", "tsx",  "typescript.tsx", "typescriptreact"]
     if self.vim.vars["nvim_typescript#javascript_support"]:
         self.filetypes.extend(["javascript", "jsx", "javascript.jsx"])
     if self.vim.vars["nvim_typescript#vue_support"]:
         self.filetypes.extend(["vue"])
Exemple #14
0
 def __init__(self, vim):
     Base.__init__(self, vim)
     self.name = "typescript"
     self.mark = self.vim.vars['nvim_typescript#completion_mark']
     self.rank = 1000
     self.min_pattern_length = 1
     self.max_abbr_width = 0
     self.max_kind_width = 0
     self.max_menu_width = 0
     self.input_pattern = r'(\.|::)\w*'
     self.filetypes = ["typescript", "tsx",  "typescript.tsx", "typescriptreact"]
     if self.vim.vars["nvim_typescript#javascript_support"]:
         self.filetypes.extend(["javascript", "jsx", "javascript.jsx"])
     if self.vim.vars["nvim_typescript#vue_support"]:
         self.filetypes.extend(["vue"])
Exemple #15
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lsp'
        self.mark = '[lsp]'
        self.rank = 500
        self.input_pattern = r'[^\w\s]$'
        self.is_volatile = True
        self.vars = {}
        self.vim.vars['deoplete#source#lsp#_results'] = []
        self.vim.vars['deoplete#source#lsp#_success'] = False
        self.vim.vars['deoplete#source#lsp#_requested'] = False
        self.vim.vars['deoplete#source#lsp#_prev_input'] = ''

        use_icons = vim.eval('g:deoplete#lsp#use_icons_for_candidates')
        self.lsp_kinds = LSP_KINDS_WITH_ICONS if use_icons else LSP_KINDS
    def __init__(self, vim):
        Base.__init__(self, vim)

        # Deoplete related
        self.debug_enabled = True
        self.name = "typescript"
        self.mark = "TS"
        self.filetypes = ["typescript", "tsx", "typescript.tsx"]
        self.rank = 700
        self.input_pattern = r"\.\w*"
        self._last_input_reload = time()
        self._max_completion_detail = vim.eval(
            "g:deoplete#sources#tss#max_completion_detail")

        # TSServer client
        self._client = Client(debug_fn=self.debug, log_fn=self.log)
Exemple #17
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        # Deoplete related
        self.debug_enabled = True
        self.name = "typescript"
        self.mark = "TS"
        self.filetypes = ["typescript", "tsx", "typescript.tsx"]
        self.rank = 1000
        self.input_pattern = r"\.\w*"
        self._last_input_reload = time()
        self._max_completion_detail = vim.eval(
            "nvim_typescript#max_completion_detail")

        # TSServer client
        self._client = Client(debug_fn=self.debug, log_fn=self.log)
    def __init__(self, vim):
        Base.__init__(self, vim)
        # Deoplete related
        self.debug_enabled = True
        self.name = "typescript"
        self.filetypes = ["typescript"]
        self.mark = "TS"
        self.rank = 700
        self.input_pattern = r'\.\w*'
        self._last_input_reload = time()

        # Project related
        self._project_directory = os.getcwd()
        self._sequenceid = 0
        self._environ = os.environ.copy()
        self._tsserver_handle = None
Exemple #19
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lsp'
        self.mark = '[lsp]'
        self.rank = 500
        self.input_pattern = r'(\.|:|->)$'
        self.is_volatile = True
        self.vars = {}
        self.vim.vars['deoplete#source#lsp#_results'] = []
        self.vim.vars['deoplete#source#lsp#_success'] = False
        self.vim.vars['deoplete#source#lsp#_requested'] = False
        self.vim.vars['deoplete#source#lsp#_prev_input'] = ''
        if 'deoplete#lsp#use_icons_for_candidates' not in self.vim.vars:
            self.vim.vars['deoplete#lsp#use_icons_for_candidates'] = False

        self.lsp_kinds = LSP_KINDS
Exemple #20
0
    def __init__(self, vim):
        Base.__init__(self, vim)
        self.name = "typescript"
        self.mark = "TS"
        self.filetypes = ["typescript", "tsx", "typescript.tsx", "javascript", "jsx", "javascript.jsx"] \
            if self.vim.vars["nvim_typescript#javascript_support"] \
            else ["typescript", "tsx", "typescript.tsx", "vue"] \
            if self.vim.vars["nvim_typescript#vue_support"] \
            else ["typescript", "tsx", "typescript.tsx"]
        self.rank = 1000
        self.min_pattern_length = 1
        self.input_pattern = r"\.\w*"
        self._last_input_reload = time()
        self._max_completion_detail = self.vim.vars[
            "nvim_typescript#max_completion_detail"]

        # TSServer client
        self._client = Client(debug_fn=self.debug, log_fn=self.log)
    def __init__(self, vim):
        Base.__init__(self, vim)
        self.name = "typescript"
        self.mark = self.vim.vars['nvim_typescript#completion_mark']
        self.filetypes = ["typescript", "tsx", "typescript.tsx", "javascript", "jsx", "javascript.jsx"] \
            if self.vim.vars["nvim_typescript#javascript_support"] \
            else ["typescript", "tsx", "typescript.tsx", "vue"] \
            if self.vim.vars["nvim_typescript#vue_support"] \
            else ["typescript", "tsx", "typescript.tsx"]
        self.rank = 1000
        self.min_pattern_length = 1
        self.input_pattern = r'.'
        # self.input_pattern = r'(\.|::)\w*'
        self._last_input_reload = time()
        self._max_completion_detail = self.vim.vars[
            "nvim_typescript#max_completion_detail"]

        # TSServer client
        # self._client = Client(debug_fn=self.debug, log_fn=self.log)
        self._client = Client()
Exemple #22
0
    def __init__(self, vim):
        Base.__init__(self, vim)

        self.name = 'lsp'
        self.mark = '[lsp]'
        self.rank = 500
        self.is_volatile = True
        self.input_pattern = r'[^\w\s]$'
        self.events = ['BufEnter']
        self.vars = {}

        self.vim.vars['deoplete#source#vim_lsp#_items'] = []
        self.vim.vars['deoplete#source#vim_lsp#_done'] = False
        self.requested = False
        self.requested_context = None

        self.server_names = None
        self.server_capabilities = {}
        self.server_infos = {}
        self.buf_changed = False
    def __init__(self, vim):
        Base.__init__(self, vim)
        # Deoplete related
        self.debug_enabled = True
        self.name = "typescript"
        self.mark = "TS"
        self.filetypes = [
            "typescript", "tsx", "typescript.tsx", "javascript", "jsx",
            "javascript.jsx"
        ] if vim.vars["deoplete#sources#tss#javascript_support"] else [
            "typescript"
        ]
        self.rank = 700
        self.input_pattern = r'\.\w*'
        self._last_input_reload = time()

        # Project related
        self._project_directory = os.getcwd()
        self._sequenceid = 0
        self._environ = os.environ.copy()
        self._tsserver_handle = None
Exemple #24
0
 def __init__(self, vim):
     Base.__init__(self, vim)
     self.name = "ledger"
     self.filetypes = ["ledger"]
     self.input_pattern = r'()'