Condition paste toggle on OS

This commit is contained in:
thomas-gideon-gm 2024-06-21 09:53:33 -04:00
parent 45af25f204
commit 59683c0702

View file

@ -89,8 +89,10 @@ vim.opt.directory = os.getenv("HOME") .. "/.var/nvim/swp//"
-- and undo -- and undo
vim.opt.undofile = true vim.opt.undofile = true
vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir" vim.opt.undodir = os.getenv("HOME") .. "/.nvim/undodir"
-- make pastemode more accessible if not vim.fn.has('macunix') then
vim.opt.pastetoggle = "<F2>" -- make pastemode more accessible
vim.opt.pastetoggle = "<F2>"
end
-- save when moving away -- save when moving away
vim.api.nvim_create_autocmd("FocusLost", {pattern = "*", command = "wa"}) vim.api.nvim_create_autocmd("FocusLost", {pattern = "*", command = "wa"})