File doc/inccomplete.txt changed (mode: 100644) (index 921c1a6..e97c248) |
1 |
|
*inccomplete.txt* For Vim version 7.3. Last change: 2019 Apr 19 |
|
|
1 |
|
*inccomplete.txt* For Vim version 7.3. Last change: 2020 Jan 9 |
2 |
2 |
|
|
3 |
3 |
|
|
4 |
4 |
inccomplete plugin documentation by xaizek |
inccomplete plugin documentation by xaizek |
|
... |
... |
items: |
155 |
155 |
- 'relative-paths' to complete paths relative to location of current buffer |
- 'relative-paths' to complete paths relative to location of current buffer |
156 |
156 |
- 'clang-buffer' to complete paths from '-I' keys in b:clang_user_options |
- 'clang-buffer' to complete paths from '-I' keys in b:clang_user_options |
157 |
157 |
- 'clang-global' to complete paths from '-I' keys in g:clang_user_options |
- 'clang-global' to complete paths from '-I' keys in g:clang_user_options |
|
158 |
|
- paths to directories to complete from (the path needs to include slash |
|
159 |
|
somewhere and be an existing directory) |
158 |
160 |
|
|
159 |
161 |
============================================================================== |
============================================================================== |
160 |
162 |
3. ToDo *inccomplete-todo* |
3. ToDo *inccomplete-todo* |
|
... |
... |
items: |
165 |
167 |
buffer instead of assuming that working directory is correct? |
buffer instead of assuming that working directory is correct? |
166 |
168 |
- Add optional caching for local includes (ones in the double quotes). |
- Add optional caching for local includes (ones in the double quotes). |
167 |
169 |
- Maybe filter out includes that already present in the buffer. |
- Maybe filter out includes that already present in the buffer. |
|
170 |
|
- Can we follow symbolic links on completion? |
168 |
171 |
|
|
169 |
172 |
vim:tw=78:ts=8:ft=help:norl: |
vim:tw=78:ts=8:ft=help:norl: |
File plugin/inccomplete.vim changed (mode: 100644) (index b2d12b0..c4edf0e) |
1 |
1 |
" Name: inccomplete |
" Name: inccomplete |
2 |
2 |
" Author: xaizek <xaizek@posteo.net> |
" Author: xaizek <xaizek@posteo.net> |
3 |
|
" Version: 1.8.52 |
|
|
3 |
|
" Version: 1.8.53 |
4 |
4 |
" License: Same terms as Vim itself (see :help license) |
" License: Same terms as Vim itself (see :help license) |
5 |
5 |
" |
" |
6 |
6 |
" See :help inccomplete for documentation. |
" See :help inccomplete for documentation. |
|
... |
... |
endfunction |
391 |
391 |
" ""-completion |
" ""-completion |
392 |
392 |
function! s:ICGetUserSources() |
function! s:ICGetUserSources() |
393 |
393 |
let l:dirs = [] |
let l:dirs = [] |
394 |
|
if index(g:inccomplete_localsources, 'relative-paths') >= 0 |
|
395 |
|
let l:dirs += [s:ICGetDir()] |
|
396 |
|
endif |
|
397 |
|
if index(g:inccomplete_localsources, 'clang-buffer') >= 0 |
|
398 |
|
let l:dirs = s:ICAddNoDupPaths(l:dirs, s:ICGetClangIncludes(1)) |
|
399 |
|
endif |
|
400 |
|
if index(g:inccomplete_localsources, 'clang-global') >= 0 |
|
401 |
|
let l:dirs = s:ICAddNoDupPaths(l:dirs, s:ICGetClangIncludes(0)) |
|
402 |
|
endif |
|
|
394 |
|
|
|
395 |
|
for l:source in g:inccomplete_localsources |
|
396 |
|
if l:source ==# 'relative-paths' |
|
397 |
|
let l:dirs += [s:ICGetDir()] |
|
398 |
|
elseif l:source ==# 'clang-buffer' |
|
399 |
|
let l:dirs = s:ICAddNoDupPaths(l:dirs, s:ICGetClangIncludes(1)) |
|
400 |
|
elseif l:source ==# 'clang-global' |
|
401 |
|
let l:dirs = s:ICAddNoDupPaths(l:dirs, s:ICGetClangIncludes(0)) |
|
402 |
|
elseif l:source ~= '/' && isdirectory(l:source) |
|
403 |
|
let l:dirs += [ l:source ] |
|
404 |
|
endif |
|
405 |
|
endfor |
|
406 |
|
|
403 |
407 |
if exists('b:inccomplete_root') |
if exists('b:inccomplete_root') |
404 |
408 |
let l:dirs = s:ICAddNoDupPaths(l:dirs, [b:inccomplete_root]) |
let l:dirs = s:ICAddNoDupPaths(l:dirs, [b:inccomplete_root]) |
405 |
409 |
endif |
endif |