diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-12-04 12:38:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 12:38:31 -0800 |
commit | 517f0cc634b985057da5b95cf4ad659ee456a77e (patch) | |
tree | bcf973c59c22b1b3d09b817b957d56e7892d2f86 /scripts/vimpatch.lua | |
parent | e5d7003b02c9af96c51ea5638e07eea25057a216 (diff) | |
download | rneovim-517f0cc634b985057da5b95cf4ad659ee456a77e.tar.gz rneovim-517f0cc634b985057da5b95cf4ad659ee456a77e.tar.bz2 rneovim-517f0cc634b985057da5b95cf4ad659ee456a77e.zip |
build: enable lintlua for scripts/ dir #26391
Problem:
We don't enable stylua for many Lua scripts. Automating code-style is an
important tool for reducing time spent on accidental (non-essential)
complexity.
Solution:
- Enable lintlua for `scripts/` directory.
- Specify `call_parentheses = "Input"`, we should allow kwargs-style
function invocations.
Diffstat (limited to 'scripts/vimpatch.lua')
-rwxr-xr-x | scripts/vimpatch.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/vimpatch.lua b/scripts/vimpatch.lua index 836f672f6e..cbec50fc17 100755 --- a/scripts/vimpatch.lua +++ b/scripts/vimpatch.lua @@ -10,13 +10,13 @@ local function systemlist(...) local err = nvim.nvim_get_vvar('shell_error') local args_str = nvim.nvim_call_function('string', ...) if 0 ~= err then - error('command failed: '..args_str) + error('command failed: ' .. args_str) end return rv end local function vimpatch_sh_list_numbers() - return systemlist( { { 'bash', '-c', 'scripts/vim-patch.sh -M', } } ) + return systemlist({ { 'bash', '-c', 'scripts/vim-patch.sh -M' } }) end -- Generates the lines to be inserted into the src/version.c @@ -55,9 +55,9 @@ local function patch_version_c() nvim.nvim_command('silent normal! j0d/};\rk') -- Insert the lines. nvim.nvim_call_function('append', { - nvim.nvim_eval('line(".")'), - lines, - }) + nvim.nvim_eval('line(".")'), + lines, + }) nvim.nvim_command('silent write') end |