Skip to content

Commit

Permalink
fix: lazy keys for scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
Civitasv committed May 3, 2024
1 parent a2b0d35 commit 4d7a170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/cmake-tools/scratch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ function scratch.create(executor, runner)
end

function scratch.append(cmd)
vim.api.nvim_buf_set_lines(scratch.buffer, -1, -1, false, { cmd })
vim.schedule(function()
vim.api.nvim_buf_set_lines(scratch.buffer, -1, -1, false, { cmd })
end)
end

return scratch

0 comments on commit 4d7a170

Please sign in to comment.