Fix so fzf lua (treesitter) doesn't hang the entire terminal window when previewing large minified files
This commit is contained in:
parent
0ef0551a30
commit
dba9e41f57
1 changed files with 7 additions and 0 deletions
|
|
@ -13,6 +13,13 @@ return {
|
||||||
symbol_kinds = { "Variable", "Function", "Method", "Class", "Struct", "Interface" },
|
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()
|
config = function()
|
||||||
local fzf = require("fzf-lua")
|
local fzf = require("fzf-lua")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue