diff options
author | belkka <ulianich_mihail@ukr.net> | 2024-05-16 12:34:58 +0000 |
---|---|---|
committer | Michael Ulianich <ulianich_mihail@ukr.net> | 2024-06-11 04:09:50 +0300 |
commit | 3cf1c70c702786d7921438113818be3a1a2f8bd5 (patch) | |
tree | 9acc5a0810f4c5328206b7d0db19ce27a5e1feaa /runtime/lua/vim/snippet.lua | |
parent | 37bf4c572a8fa20dc4a8433524ecc8c8d68fe53c (diff) | |
download | rneovim-3cf1c70c702786d7921438113818be3a1a2f8bd5.tar.gz rneovim-3cf1c70c702786d7921438113818be3a1a2f8bd5.tar.bz2 rneovim-3cf1c70c702786d7921438113818be3a1a2f8bd5.zip |
refactor(ftplugin/man.vim): rearrange `setlocal` commands
Problem:
1. multiple `setlocal` commands are spread across the script.
2. several options, apparently, serve the same purpose (hide UI columns) which may not be immediately clear. more options may be required to fullfill the same purpose or they could be removed all together as a group if better solution is found later
3. `setlocal nofoldenable` may be overriden by conditional block later in the script.
Solution:
1. move 'colorcolumn' and 'nolist' to the group of other options at the beginning
2. add an explanatory comment about options that disable UI columns
3. move 'nofoldenable' to the if-else block to keep relevant commands coupled
Diffstat (limited to 'runtime/lua/vim/snippet.lua')
0 files changed, 0 insertions, 0 deletions