diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-18 21:43:26 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-18 21:46:58 +0200 |
| commit | 620f502a79484334ae31335c7a7ad5660245cec8 (patch) | |
| tree | 50c2e900a14fd942c06bad989bc74dcf027317bb /after/ftplugin/lua.lua | |
| parent | 89a81f9b7ad4f300d803d344355e3aca821d57c8 (diff) | |
| download | nvim-config-620f502a79484334ae31335c7a7ad5660245cec8.tar.gz nvim-config-620f502a79484334ae31335c7a7ad5660245cec8.zip | |
fix(nvim): remove `tempname()` files in lua/markdown formatters
Diffstat (limited to 'after/ftplugin/lua.lua')
| -rw-r--r-- | after/ftplugin/lua.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/after/ftplugin/lua.lua b/after/ftplugin/lua.lua index eb74daa..2ffd62c 100644 --- a/after/ftplugin/lua.lua +++ b/after/ftplugin/lua.lua @@ -22,6 +22,7 @@ local function format() for line in io.lines(tempname) do formatted_lines[#formatted_lines + 1] = line end + os.remove(tempname) vim.api.nvim_buf_set_lines(0, 0, -1, false, formatted_lines) vim.fn.winrestview(view) end |
