add TODO for a future deprecated function
This commit is contained in:
@ -50,6 +50,7 @@ return { 'nvim-treesitter/nvim-treesitter',
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- disable in big files
|
-- disable in big files
|
||||||
|
-- TODO: update before nvim 1.0 when vim.loop is removed
|
||||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||||
if ok and stats and stats.size > (1024 * 100 * 10) --[[1MB]] then
|
if ok and stats and stats.size > (1024 * 100 * 10) --[[1MB]] then
|
||||||
return true
|
return true
|
||||||
|
Reference in New Issue
Block a user