diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-11-15 09:34:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 09:34:24 +0000 |
commit | b91d82bfaa395bb86b3ea51f63cc8cef05e90f98 (patch) | |
tree | 5e180e331579322db8286d993e45834fdf65806d /doc/ale.txt | |
parent | 9005a62dc2080327a0f2164d765f837e90e963dc (diff) | |
parent | e2a67812de81f9316710ce4ad52c2c461f2a1787 (diff) | |
download | ale-b91d82bfaa395bb86b3ea51f63cc8cef05e90f98.zip |
Merge pull request #2847 from DonnieWest/allowUserToCustomizeItems
Allow user to customize items
Diffstat (limited to 'doc/ale.txt')
-rw-r--r-- | doc/ale.txt | 78 |
1 files changed, 77 insertions, 1 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index 593aae11..847a9777 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -432,7 +432,42 @@ vimrc, and your issues should go away. > set completeopt=menu,menuone,preview,noselect,noinsert < - + *ale-symbols* + +ALE provides a set of basic completion symbols. If you want to replace those +symbols with others, you can set the variable |g:ale_completion_symbols| with +a mapping of the type of completion to the symbol or other string that you +would like to use. An example here shows the available options for symbols > + + let g:ale_completion_symbols = { + \ 'text': '', + \ 'method': '', + \ 'function': '', + \ 'constructor': '', + \ 'field': '', + \ 'variable': '', + \ 'class': '', + \ 'interface': '', + \ 'module': '', + \ 'property': '', + \ 'unit': 'unit', + \ 'value': 'val', + \ 'enum': '', + \ 'keyword': 'keyword', + \ 'snippet': '', + \ 'color': 'color', + \ 'file': '', + \ 'reference': 'ref', + \ 'folder': '', + \ 'enum member': '', + \ 'constant': '', + \ 'struct': '', + \ 'event': 'event', + \ 'operator': '', + \ 'type_parameter': 'type param', + \ '<default>': 'v' + \ } +< ------------------------------------------------------------------------------- 5.2 Go To Definition *ale-go-to-definition* @@ -671,6 +706,47 @@ g:ale_completion_excluded_words *g:ale_completion_excluded_words* let b:ale_completion_excluded_words = ['it', 'describe'] < +g:ale_completion_symbols *g:ale_completion_symbols* + + Type: |Dictionary| + + + A mapping from completion types to symbols for completions. See + |ale-symbols| for more information. + + By default, this mapping only uses built in Vim completion kinds, but it can + be updated to use any unicode character for the completion kind. For + example: > + let g:ale_completion_symbols = { + \ 'text': '', + \ 'method': '', + \ 'function': '', + \ 'constructor': '', + \ 'field': '', + \ 'variable': '', + \ 'class': '', + \ 'interface': '', + \ 'module': '', + \ 'property': '', + \ 'unit': 'v', + \ 'value': 'v', + \ 'enum': 't', + \ 'keyword': 'v', + \ 'snippet': 'v', + \ 'color': 'v', + \ 'file': 'v', + \ 'reference': 'v', + \ 'folder': 'v', + \ 'enum_member': 'm', + \ 'constant': 'm', + \ 'struct': 't', + \ 'event': 'v', + \ 'operator': 'f', + \ 'type_parameter': 'p', + \ '<default>': 'v' + \ }) +< + g:ale_completion_max_suggestions *g:ale_completion_max_suggestions* Type: |Number| |