fix: Explicit add of noswapfile, noundofile, and noloadplugins
This commit is contained in:
parent
310e3f39d3
commit
c42de5a1c3
@ -21,6 +21,9 @@ vim.api.nvim_create_autocmd({ 'BufReadPre' }, {
|
|||||||
if file_size > max_filesize_MiB then
|
if file_size > max_filesize_MiB then
|
||||||
-- print(string.format('Big file detected above %sMiB. Disabling syntax, treesitter, and folding.', max_filesize_MiB))
|
-- 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 foldmethod=manual')
|
||||||
|
vim.api.nvim_command('set noswapfile')
|
||||||
|
vim.api.nvim_command('set noundofile')
|
||||||
|
vim.api.nvim_command('set noloadplugins')
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user