diff options
Diffstat (limited to '')
| -rw-r--r-- | home/neovim/init.lua | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/home/neovim/init.lua b/home/neovim/init.lua index a97feb4..e66e523 100644 --- a/home/neovim/init.lua +++ b/home/neovim/init.lua @@ -291,19 +291,10 @@ require('nvim-surround').setup {} --[[ SYNTAX HIGHLIGHTING ]]-- -require('nvim-treesitter.configs').setup { - highlight = { - enable = true, - disable = function(lang, buf) - local max_filesize = config.highlight.max_size * 1024 - 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, - }, -} +vim.api.nvim_create_autocmd('FileType', { + pattern = { '<filetype>' }, + callback = function() vim.treesitter.start() end, +}) require('illuminate').configure { providers = { |