mirror of
https://github.com/dense-analysis/ale
synced 2025-02-27 01:41:28 +00:00
Merge pull request #2599 from parkovski/cpp-autocomplete-trigger
Enable C++ autocompletion on '::' and '->'
This commit is contained in:
commit
38a55fa9fe
@ -52,6 +52,7 @@ let s:should_complete_map = {
|
|||||||
\ 'lisp': s:lisp_regex,
|
\ 'lisp': s:lisp_regex,
|
||||||
\ 'typescript': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$|''$|"$',
|
\ 'typescript': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$|''$|"$',
|
||||||
\ 'rust': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$|::$',
|
\ 'rust': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$|::$',
|
||||||
|
\ 'cpp': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$|::$|-\>$',
|
||||||
\}
|
\}
|
||||||
|
|
||||||
" Regular expressions for finding the start column to replace with completion.
|
" Regular expressions for finding the start column to replace with completion.
|
||||||
@ -64,6 +65,7 @@ let s:trigger_character_map = {
|
|||||||
\ '<default>': ['.'],
|
\ '<default>': ['.'],
|
||||||
\ 'typescript': ['.', '''', '"'],
|
\ 'typescript': ['.', '''', '"'],
|
||||||
\ 'rust': ['.', '::'],
|
\ 'rust': ['.', '::'],
|
||||||
|
\ 'cpp': ['.', '::', '->'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
function! s:GetFiletypeValue(map, filetype) abort
|
function! s:GetFiletypeValue(map, filetype) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user