From b6b1377f93b771e8538b47b1136a3575a8fc0640 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 20 Oct 2019 15:45:53 +0200 Subject: [PATCH] Added documentation for g:splitopen_extensions --- README.md | 9 +++++++++ doc/splitopen.txt | 17 +++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 823c8a7..8481b70 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,15 @@ source file in the right window. You can configure the following settings: +### g:splitopen_extensions + +Use this dictionary to define your pairs of left-hand- right-hand-side file +types. E.g. + + let g:splitopen_extensions = {"h": "cpp"} + +always places a .cpp file on the right-hand side when opening an .h file and +vice versa. ### g:splitopen_set_fzf_keys diff --git a/doc/splitopen.txt b/doc/splitopen.txt index c4b3e6e..39cb2a6 100644 --- a/doc/splitopen.txt +++ b/doc/splitopen.txt @@ -5,7 +5,8 @@ CONTENTS *SplitOpenContents* 1. Usage ..............................|SplitOpenUsage| 2. Configuration ......................|SlitOpenConfiguraton| - 2.1 g:splitopen_set_fzf_keys.......|SplitOpenConfiguration_set_fzf_keys| + 2.1 g:splitopen_extensions.........|SplitOpenConfiguration_extensions| + 2.2 g:splitopen_set_fzf_keys.......|SplitOpenConfiguration_set_fzf_keys| 3. License ............................|SplitOpenLicense| 4. Changelog ..........................|SplitOpenChangelog| @@ -27,7 +28,19 @@ You can configure the following settings: -------------------------------------------------------------------------------- -2.1 g:splitopen_set_fzf_keys *SplitOpenConfiguration_set_fzf_keys* +2.1 g:splitopen_extensions *SplitOpenConfiguration_extensions* + +Use this dictionary to define your pairs of left-hand- right-hand-side file +types. E.g. + + let g:splitopen_extensions = {"h": "cpp"} + +always places a .cpp file on the right-hand side when opening an .h file and +vice versa. + +-------------------------------------------------------------------------------- + +2.2 g:splitopen_set_fzf_keys *SplitOpenConfiguration_set_fzf_keys* Set this option to 1