aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-10-05 10:56:53 +0200
committerGitHub <noreply@github.com>2022-10-05 10:56:53 +0200
commit06f4edc864479fb121d514ec1e7253dba85b740d (patch)
tree08ebf8e82569a6993b9ae52957437fb9ac2f4dfb /runtime/ftplugin
parent759259e8af2f6f5e840fcbd687caaaf5f2b9b676 (diff)
downloadrneovim-06f4edc864479fb121d514ec1e7253dba85b740d.tar.gz
rneovim-06f4edc864479fb121d514ec1e7253dba85b740d.tar.bz2
rneovim-06f4edc864479fb121d514ec1e7253dba85b740d.zip
vim-patch:partial:f269eabc6c4f (#20470)
Update runtime files https://github.com/vim/vim/commit/f269eabc6c4f5bdcef989cd5b4b95ba8ccaa4d8a
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/erlang.vim24
1 files changed, 23 insertions, 1 deletions
diff --git a/runtime/ftplugin/erlang.vim b/runtime/ftplugin/erlang.vim
index c775247f51..31fa0c3213 100644
--- a/runtime/ftplugin/erlang.vim
+++ b/runtime/ftplugin/erlang.vim
@@ -5,7 +5,7 @@
" Contributors: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
" Eduardo Lopez (http://github.com/tapichu)
" Arvid Bjurklint (http://github.com/slarwise)
-" Last Update: 2021-Jan-08
+" Last Update: 2021-Nov-22
" License: Vim license
" URL: https://github.com/vim-erlang/vim-erlang-runtime
@@ -30,6 +30,28 @@ setlocal commentstring=%%s
setlocal formatoptions+=ro
+if get(g:, 'erlang_extend_path', 1)
+ " typical erlang.mk paths
+ let &l:path = join([
+ \ 'deps/*/include',
+ \ 'deps/*/src',
+ \ 'deps/*/test',
+ \ 'deps/*/apps/*/include',
+ \ 'deps/*/apps/*/src',
+ \ &g:path], ',')
+ " typical rebar3 paths
+ let &l:path = join([
+ \ 'apps/*/include',
+ \ 'apps/*/src',
+ \ '_build/default/lib/*/src',
+ \ '_build/default/*/include',
+ \ &l:path], ',')
+ " typical erlang paths
+ let &l:path = join(['include', 'src', 'test', &l:path], ',')
+
+ set wildignore+=*/.erlang.mk/*,*.beam
+endif
+
setlocal suffixesadd=.erl,.hrl
let &l:include = '^\s*-\%(include\|include_lib\)\s*("\zs\f*\ze")'