diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-06 13:28:51 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-01-06 13:28:51 +1300 |
commit | f77bc38f145ea516e9da91258a017d619a3cc927 (patch) | |
tree | 11e6295df44a5989d82c4eee70d460cbb51d88b5 | |
parent | Add buffer-local maps for internal wordlist (diff) | |
download | vim-spellfile-local-f77bc38f145ea516e9da91258a017d619a3cc927.tar.gz vim-spellfile-local-f77bc38f145ea516e9da91258a017d619a3cc927.zip |
Adjust aggregate definition layout for readability
-rw-r--r-- | autoload/spellfile_local.vim | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/autoload/spellfile_local.vim b/autoload/spellfile_local.vim index 1b8aa38..377ed92 100644 --- a/autoload/spellfile_local.vim +++ b/autoload/spellfile_local.vim @@ -27,8 +27,8 @@ function! spellfile_local#() abort " for runtimepath in s:OptionSplit(&runtimepath) let path = s:Path(join(add( - \ split(runtimepath, '/', 1) - \,'spell' + \ split(runtimepath, '/', 1), + \ 'spell', \), '/'), lang, encoding) if path !=# '' call add(spellfiles, path) @@ -49,8 +49,14 @@ function! spellfile_local#() abort " subdirectory, and the `value` as the first component of the filename. We " let types = [ - \ { 'name': 'path', 'value': expand('%:p') } - \,{ 'name': 'filetype', 'value': &filetype } + \ { + \ 'name': 'path', + \ 'value': expand('%:p'), + \ }, + \ { + \ 'name': 'filetype', + \ 'value': &filetype, + \ }, \] " Iterate through the specified types to add them to the spelling files list @@ -105,16 +111,16 @@ endfunction " Join a list of strings into a comma-separated option function! s:OptionJoin(list) abort return join(map( - \ a:list - \,'substitute(v:val, ''\\\@<!,'', ''\\,'', ''g'')' + \ a:list, + \ 'substitute(v:val, ''\\\@<!,'', ''\\,'', ''g'')', \), ',') endfunction " Split a comma-separated option into a list of strings function! s:OptionSplit(string) abort return map( - \ split(a:string, '\\\@<!,[, ]*') - \,'substitute(v:val, ''\\,'', '''', ''g'')' + \ split(a:string, '\\\@<!,[, ]*'), + \ 'substitute(v:val, ''\\,'', '''', ''g'')', \) endfunction |