diff options
| author | pablu <me@pablu.de> | 2026-07-22 14:43:26 +0200 |
|---|---|---|
| committer | pablu <me@pablu.de> | 2026-07-22 14:43:26 +0200 |
| commit | 8c8f1ea22812796e23932a25a786d5491329606a (patch) | |
| tree | 13c7517558602e86fc2f74785e0d994100f89a18 /dot_config/nvim/lua/plugins | |
| parent | 5650e2f96a619cbbb9b45bc3a8b5e091d22037bb (diff) | |
updates
Diffstat (limited to 'dot_config/nvim/lua/plugins')
| -rw-r--r-- | dot_config/nvim/lua/plugins/treesitter.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index 1df588a..5198eaf 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -5,6 +5,14 @@ return { build = ":TSUpdate", config = function() local treesitter = require("nvim-treesitter") - treesitter.install({ "python", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python", "lua" }) + treesitter.install({ "python", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python", + "lua" }) + + vim.api.nvim_create_autocmd("FileType", { + group = vim.api.nvim_create_augroup("treesitter-start", { clear = true }), + callback = function() + pcall(vim.treesitter.start) + end + }) end } |
