From 2d1101b5f37c60ccc28520b8dfaa24a78ac709f6 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 5 Jan 2023 18:57:51 +0100 Subject: [PATCH] refactor: better naming --- lua/kustomize/build.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/kustomize/build.lua b/lua/kustomize/build.lua index 444ca98..b2f23a3 100644 --- a/lua/kustomize/build.lua +++ b/lua/kustomize/build.lua @@ -1,7 +1,7 @@ local utils = require("kustomize.utils") local M = {} -local function create_output() +local function configure_buffer() local win, buf = utils.create_output() vim.api.nvim_win_set_buf(win, buf) vim.api.nvim_buf_set_name(buf, "Kustomize #" .. buf) @@ -29,7 +29,7 @@ M.build = function() local error = table.concat(j:stderr_result(), "\n") utils.error("Failed with code " .. code .. "\n" .. error) else - local buf = create_output() + local buf = configure_buffer() vim.api.nvim_buf_set_lines(buf, -1, -1, true, j:result()) end end),