Skip to content

Commit

Permalink
fix: lazy.nvim lazy option
Browse files Browse the repository at this point in the history
  • Loading branch information
Civitasv committed May 3, 2024
1 parent 60fc5ee commit a1bce1b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lua/cmake-tools/scratch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ local scratch = {
function scratch.create(executor, runner)
scratch.buffer = vim.api.nvim_create_buf(true, true) -- can be search, and is a scratch buffer
vim.api.nvim_buf_set_name(scratch.buffer, scratch.name)
vim.api.nvim_buf_set_lines(scratch.buffer, 0, 0, false, {
"THIS IS A SCRATCH BUFFER FOR cmake-tools.nvim, YOU CAN SEE WHICH COMMAND THIS PLUGIN EXECUTES HERE.",
"EXECUTOR: " .. executor .. " RUNNER: " .. runner,
})
vim.api.nvim_buf_set_option(scratch.buffer, "buflisted", false)
vim.schedule_wrap(function()
vim.api.nvim_buf_set_lines(scratch.buffer, 0, 0, false, {
"THIS IS A SCRATCH BUFFER FOR cmake-tools.nvim, YOU CAN SEE WHICH COMMAND THIS PLUGIN EXECUTES HERE.",
"EXECUTOR: " .. executor .. " RUNNER: " .. runner,
})
vim.api.nvim_buf_set_option(scratch.buffer, "buflisted", false)
end)
end

function scratch.append(cmd)
Expand Down

0 comments on commit a1bce1b

Please sign in to comment.