本文记录了如何在neovim中配置自定义的swapfile路径。

Lua配置: vim.go.directory = vim.fn.expand('~/.nvim/swapfiles//') .. ',!,'