mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-03 12:17:35 +00:00
Compare commits
2 commits
9b11e6e938
...
6b841d4b97
| Author | SHA1 | Date | |
|---|---|---|---|
|
6b841d4b97 |
|||
|
|
47dcff9d56 |
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ in {
|
|||
-- Disable slow treesitter highlight for large files
|
||||
function(lang, buf)
|
||||
local max_filesize = 1000 * 1024 -- 1MB
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
local ok, stats = pcall(vim.uv.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ in {
|
|||
type = luaInline;
|
||||
default = mkLuaInline ''
|
||||
function()
|
||||
return vim.loop.cwd()
|
||||
return vim.uv.cwd()
|
||||
end
|
||||
'';
|
||||
description = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue