There is a function
vim.lsp.utils.apply_text_edits(edits, buf) which makes changes to a buffer.
Is there some equivalent pattern for applying edits/changes to a file path not loaded into a buffer yet?
Or should one load the file into a buffer first and then apply the edits, and then write it and close the buffer?
(I put this under
Neovim category for now, but maybe it should be
I just found out about the
writefile commands which I have to look into.
Also, my question maybe also doesn’t make sense because I am quite new to this stuff…