aboutsummaryrefslogtreecommitdiff
path: root/config/nvim/lua/treesitter_config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/nvim/lua/treesitter_config.lua')
-rw-r--r--config/nvim/lua/treesitter_config.lua30
1 files changed, 2 insertions, 28 deletions
diff --git a/config/nvim/lua/treesitter_config.lua b/config/nvim/lua/treesitter_config.lua
index 2502859..70f251f 100644
--- a/config/nvim/lua/treesitter_config.lua
+++ b/config/nvim/lua/treesitter_config.lua
@@ -1,7 +1,4 @@
-require'nvim-treesitter.configs'.setup {
- -- A list of parser names, or "all" (the five listed parsers should always be installed)
- ensure_installed = {
- 'api_notation',
+require('nvim-treesitter').install {
'bash',
'css',
'dart',
@@ -28,28 +25,5 @@ require'nvim-treesitter.configs'.setup {
'toml',
'tsx',
'typescript',
- 'wmap',
'yaml'
- },
-
- sync_install = false,
- auto_install = true,
-
- endwise = {
- enable = true
- },
-
- highlight = {
- enable = true,
-
- disable = function(lang, buf)
- local max_filesize = 100 * 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 = false,
- },
-}
+ }