Skip to content

Instantly share code, notes, and snippets.

@pkutaj
Created March 23, 2026 07:40
Show Gist options
  • Select an option

  • Save pkutaj/b0e75ef0baa9f1162eafa6f2c2b60a92 to your computer and use it in GitHub Desktop.

Select an option

Save pkutaj/b0e75ef0baa9f1162eafa6f2c2b60a92 to your computer and use it in GitHub Desktop.
How to Eliminate Swap File Conflicts in Neovim Multi Tab Workflows snippet
-- in init.lua or options.lua
vim.opt.swapfile = false
-- compensate with persistent undo
vim.opt.undofile = true
vim.opt.undodir = vim.fn.stdpath("state") .. "/undo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment