mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
feat: vim.loop -> vim.uv
This commit is contained in:
parent
9b11e6e938
commit
47dcff9d56
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ in {
|
||||||
-- Disable slow treesitter highlight for large files
|
-- Disable slow treesitter highlight for large files
|
||||||
function(lang, buf)
|
function(lang, buf)
|
||||||
local max_filesize = 1000 * 1024 -- 1MB
|
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
|
if ok and stats and stats.size > max_filesize then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
|
@ -39,7 +39,7 @@ in {
|
||||||
type = luaInline;
|
type = luaInline;
|
||||||
default = mkLuaInline ''
|
default = mkLuaInline ''
|
||||||
function()
|
function()
|
||||||
return vim.loop.cwd()
|
return vim.uv.cwd()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue