fix: Explicit add of noswapfile, noundofile, and noloadplugins

This commit is contained in:
Finch 2024-10-12 13:40:11 -05:00
parent 310e3f39d3
commit c42de5a1c3

View File

@ -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,
})