diff options
author | Christian Segundo | 2024-04-18 20:56:40 +0200 |
---|---|---|
committer | Christian Segundo | 2024-04-18 20:56:40 +0200 |
commit | c42d60e358779b4ce8ccaae1b5bf395da2997f6b (patch) | |
tree | 1413cd9954a1e7d61abfe9515da372e91077f52c | |
parent | 7482314fda11bcb792f1e72b395072735a80ab44 (diff) | |
download | config-c42d60e358779b4ce8ccaae1b5bf395da2997f6b.tar.gz |
re-enable ts
-rw-r--r-- | lazy-lock.json | 1 | ||||
-rw-r--r-- | lua/plugins/core/treesitter.lua | 13 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lazy-lock.json b/lazy-lock.json index e082d11..68605ec 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -28,6 +28,7 @@ "nvim-lspconfig": { "branch": "master", "commit": "9266dc26862d8f3556c2ca77602e811472b4c5b8" }, "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" }, "nvim-tree.lua": { "branch": "master", "commit": "81eb8d519233c105f30dc0a278607e62b20502fd" }, + "nvim-treesitter": { "branch": "master", "commit": "7099c9e5310ec3ef70f99e8c935c061ae9990cdd" }, "nvim-web-devicons": { "branch": "master", "commit": "b3468391470034353f0e5110c70babb5c62967d3" }, "plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" }, "promqlfmt.nvim": { "branch": "master", "commit": "bc2ce7bec385ccca278cace3979ec43d2ce2a94d" }, diff --git a/lua/plugins/core/treesitter.lua b/lua/plugins/core/treesitter.lua index 518f66b..c540e48 100644 --- a/lua/plugins/core/treesitter.lua +++ b/lua/plugins/core/treesitter.lua @@ -18,13 +18,14 @@ end return { { "nvim-treesitter/nvim-treesitter", + --enabled = false, build = ":TSUpdate", cmd = { "TSUpdateSync" }, event = { "BufReadPost", "BufNewFile" }, - init = function() - vim.o.foldmethod = "expr" - vim.o.foldexpr = "nvim_treesitter#foldexpr()" - end, + --init = function() + --vim.o.foldmethod = "expr" + --vim.o.foldexpr = "nvim_treesitter#foldexpr()" + --end, opts = { indent = { enable = true }, ensure_installed = { "query" }, @@ -32,6 +33,7 @@ return { highlight = { enable = true, additional_vim_regex_highlighting = false, + -- disable for big files disable = function(_, buf) local max_filesize = 100 * 1024 -- 100 KB @@ -52,6 +54,9 @@ return { if type(opts.ensure_installed) == "table" then opts.ensure_installed = tbl_uniq(opts.ensure_installed) end + if type(opts.ignore_install) == "table" then + opts.ignore_install = tbl_uniq(opts.ignore_install) + end require("nvim-treesitter.configs").setup(opts) end, }, |