diff options
author | Parker Snell <parkovski@users.noreply.github.com> | 2019-06-18 17:48:49 -0700 |
---|---|---|
committer | Parker Snell <parkersnell@gmail.com> | 2019-06-18 18:02:44 -0700 |
commit | c5a4bbf8b078b5032f09965e5b10a8328a76f99e (patch) | |
tree | a18b835af951e7e78dd00a72b3076478234fa116 /autoload | |
parent | 1c71da5624fc46107cda4852add08fe34385dfd9 (diff) | |
download | ale-c5a4bbf8b078b5032f09965e5b10a8328a76f99e.zip |
Enable C++ autocompletion on '::' and '->'
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/completion.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index ee156056..43d84ea6 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -52,6 +52,7 @@ let s:should_complete_map = { \ 'lisp': s:lisp_regex, \ 'typescript': '\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. @@ -64,6 +65,7 @@ let s:trigger_character_map = { \ '<default>': ['.'], \ 'typescript': ['.', '''', '"'], \ 'rust': ['.', '::'], +\ 'cpp': ['.', '::', '->'], \} function! s:GetFiletypeValue(map, filetype) abort |