25 lines
594 B
Lua
25 lines
594 B
Lua
--[[
|
|
speedie's neovim configuration
|
|
-- https://git.speedie.site/speedie/speedie-nvim --
|
|
]]--
|
|
|
|
require('nvim-treesitter.configs').setup {
|
|
ensure_installed = Languages,
|
|
sync_install = false,
|
|
auto_install = true,
|
|
|
|
highlight = {
|
|
enable = true,
|
|
|
|
disable = function(lang, buf)
|
|
local max_filesize = 1000 * 1024 -- 100 KB
|
|
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
|
if ok and stats and stats.size > max_filesize then
|
|
return true
|
|
end
|
|
end,
|
|
|
|
additional_vim_regex_highlighting = true,
|
|
},
|
|
}
|