diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-21 16:18:08 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-21 16:18:08 +0000 |
commit | 8be85c2997a56c753a820ebaccb30fe7ea953d2c (patch) | |
tree | 836bd2cb875774ca746db9f709b875795ff4682c /autoload | |
parent | 3ef98f42bdb0d692346d4aab29bd0809a6d5bdd4 (diff) | |
download | ale-8be85c2997a56c753a820ebaccb30fe7ea953d2c.zip |
Use some default regex for completion support in other filetypes
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/completion.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index e471a3bd..e5f1dbbe 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -12,14 +12,14 @@ function! s:GetRegex(map, filetype) abort endif endfor - return '' + " Use the default regex for other files. + return s:should_complete_map['<default>'] endfunction " Regular expressions for checking the characters in the line before where " the insert cursor is. If one of these matches, we'll check for completions. let s:should_complete_map = { -\ 'javascript': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$', -\ 'typescript': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$', +\ '<default>': '\v[a-zA-Z$_][a-zA-Z$_0-9]*$|\.$', \} " Check if we should look for completions for a language. |