Skip to content

Commit

Permalink
refactor: better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Allaman committed Jan 5, 2023
1 parent e57ea1f commit 2d1101b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/kustomize/build.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 2d1101b

Please sign in to comment.