Skip to content

Instantly share code, notes, and snippets.

@kraem
Last active November 7, 2020 13:14
Show Gist options
  • Save kraem/4fdc4e78ddb4d338542da2f28fa89b05 to your computer and use it in GitHub Desktop.
Save kraem/4fdc4e78ddb4d338542da2f28fa89b05 to your computer and use it in GitHub Desktop.
vim.api.nvim_buf_set_lines
cur_buf = vim.api.nvim_get_current_buf()
vim.api.nvim_buf_set_lines(cur_buf, 0, -1, false, ['test'])
-- err:
-- unexpected symbol near '['
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment