speedie-nvim/.config/nvim/lua/ts_config.lua

25 lines
594 B
Lua
Raw Normal View History

2024-01-19 13:50:47 +01:00
--[[
speedie's neovim configuration
-- https://git.speedie.site/speedie/speedie-nvim --
]]--
2024-01-30 16:16:38 +01:00
require('nvim-treesitter.configs').setup {
2024-01-19 13:50:47 +01:00
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,
2024-01-30 16:16:38 +01:00
additional_vim_regex_highlighting = true,
2024-01-19 13:50:47 +01:00
},
}