mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
Deploy PR #1014 preview
This commit is contained in:
parent
51352db4aa
commit
5c9bcbcbd5
1 changed files with 2 additions and 2 deletions
|
@ -32569,7 +32569,7 @@ luaInline</p>
|
||||||
_type = "lua-inline";
|
_type = "lua-inline";
|
||||||
expr = ''
|
expr = ''
|
||||||
function()
|
function()
|
||||||
return vim.loop.cwd()
|
return vim.uv.cwd()
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -40874,7 +40874,7 @@ syntax errors within your Neovim configuration.</p></div>
|
||||||
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting lua">-- Disable slow treesitter highlight for large files
|
<p><span class="emphasis"><em>Example:</em></span></p><pre><code class="programlisting lua">-- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue