From c42de5a1c3481c99b7547e439c9df2920f65c662 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Sat, 12 Oct 2024 13:40:11 -0500 Subject: [PATCH] fix: Explicit add of noswapfile, noundofile, and noloadplugins --- nvim/lua/autocmds.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nvim/lua/autocmds.lua b/nvim/lua/autocmds.lua index f4ee473..ef1d0e8 100644 --- a/nvim/lua/autocmds.lua +++ b/nvim/lua/autocmds.lua @@ -21,6 +21,9 @@ vim.api.nvim_create_autocmd({ 'BufReadPre' }, { if file_size > max_filesize_MiB then -- print(string.format('Big file detected above %sMiB. Disabling syntax, treesitter, and folding.', max_filesize_MiB)) vim.api.nvim_command('set foldmethod=manual') + vim.api.nvim_command('set noswapfile') + vim.api.nvim_command('set noundofile') + vim.api.nvim_command('set noloadplugins') end end, })