diff --git a/home/.config/nvim/lua/plugs/fzf.lua b/home/.config/nvim/lua/plugs/fzf.lua index 45f81eb..3aa8088 100644 --- a/home/.config/nvim/lua/plugs/fzf.lua +++ b/home/.config/nvim/lua/plugs/fzf.lua @@ -13,6 +13,13 @@ return { symbol_kinds = { "Variable", "Function", "Method", "Class", "Struct", "Interface" }, }, }, + previewers = { + builtin = { + -- turn off syntax highlighting for files with more than 100KB + -- this avoid hanging when previewing large files (due to treesitter parsing on minified files) + syntax_limit_b = 1024 * 100, -- 100KB + } + } }, config = function() local fzf = require("fzf-lua")