You've already forked dotfiles
cleanup: Removing extraneous items that are meant for development work
and experimental settings rather than the official stable setup
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
local largefile_group = vim.api.nvim_create_augroup('largefile', { clear = true })
|
||||
local max_filesize = 4 * (1024 * 1024) -- 4 MB
|
||||
|
||||
local old_eventignore = false
|
||||
local old_eventignore = ''
|
||||
|
||||
-- Disables syntax, treesitter and folding on larger files
|
||||
vim.api.nvim_create_autocmd({ 'BufReadPre' }, {
|
||||
@@ -30,7 +30,7 @@ vim.api.nvim_create_autocmd({ 'BufWinEnter' }, {
|
||||
callback = function(ev)
|
||||
if old_eventignore ~= false then
|
||||
vim.o.eventignore = old_eventignore -- Restore the old setting
|
||||
old_eventignore = false
|
||||
old_eventignore = ''
|
||||
end
|
||||
if vim.b[ev.buf].is_large_file then
|
||||
vim.wo.wrap = false
|
||||
|
||||
Reference in New Issue
Block a user