From a7f4270ff1d8c66cca50de4064b8617b681f79c1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 09:33:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- lua/hurl/main.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lua/hurl/main.lua b/lua/hurl/main.lua index dca3228..d4e6e98 100644 --- a/lua/hurl/main.lua +++ b/lua/hurl/main.lua @@ -518,11 +518,17 @@ function M.setup() vim.cmd('HurlSetVariable ' .. var_name .. ' ' .. var_value) -- Append to the last line vim.api.nvim_buf_set_lines(0, line_position, -1, false, { var_name .. ' = ' .. var_value }) - + -- Refresh the buffer display - vim.api.nvim_buf_set_lines(0, 0, -1, false, vim.tbl_map(function(key) - return key .. ' = ' .. _HURL_GLOBAL_CONFIG.global_vars[key] - end, vim.tbl_keys(_HURL_GLOBAL_CONFIG.global_vars))) + vim.api.nvim_buf_set_lines( + 0, + 0, + -1, + false, + vim.tbl_map(function(key) + return key .. ' = ' .. _HURL_GLOBAL_CONFIG.global_vars[key] + end, vim.tbl_keys(_HURL_GLOBAL_CONFIG.global_vars)) + ) end) end, { nargs = '*',