try and make everything confined to 80chars
This commit is contained in:
parent
d0155fcc7c
commit
f9311db805
6 changed files with 38 additions and 20 deletions
|
|
@ -48,7 +48,8 @@ return { "nvim-treesitter/nvim-treesitter",
|
|||
|
||||
-- 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
|
||||
return true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue