Skip to content

Commit

Permalink
Merge pull request #73 from kyoh86/desc-options-usage
Browse files Browse the repository at this point in the history
Describe how the options be used by ddu.vim
  • Loading branch information
Shougo authored Jul 29, 2023
2 parents 6c5d0f3 + 4228a95 commit d32e635
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/ddu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,9 @@ FAQ 6: |ddu-faq-6|
FAQ 7: |ddu-faq-7|
I want to execute grep action from items.

FAQ 8: |ddu-faq-8|
How ddu.vim use options?


------------------------------------------------------------------------------
*ddu-faq-1*
Expand Down Expand Up @@ -1434,6 +1437,22 @@ A: The example is here. >
\ })
endfunction
<
*ddu-faq-8*
Q: How ddu.vim use options?

There're 4 layers of options for the ddu.vim in order of priority:

user: as passed in |ddu#start()| or |ddu#get_items()|.
local: as assembled by |ddu#custom#patch_local()| with a name.
global: as assembled by |ddu#custom#patch_global()|.
default: as described in each |ddu-options|.

ddu.vim merges them recursively.

The |ddu-option-name| describes the name which local option be used.
And |ddu-option-name| value is also decided by user, global and
default options.


==============================================================================
COMPATIBILITY *ddu-compatibility*
Expand Down

0 comments on commit d32e635

Please sign in to comment.