diff options
| author | Zam Kokott <zam.kokott@bwi.de> | 2026-06-05 10:51:12 +0000 |
|---|---|---|
| committer | Zam Kokott <zam.kokott@bwi.de> | 2026-06-05 10:51:12 +0000 |
| commit | 5984d43664ccdc10ae41ab5cf0b3e9a0f0dd6ce7 (patch) | |
| tree | 07378b23a9e5c0735566a790355846146d58b7eb /dot_config/nvim/lua/plugins/treesitter.lua | |
| parent | 52369a36f5e05ebb950dc7da6016e24e5d1ffc85 (diff) | |
update nvim
Diffstat (limited to 'dot_config/nvim/lua/plugins/treesitter.lua')
| -rw-r--r-- | dot_config/nvim/lua/plugins/treesitter.lua | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index cf947b9..5410dc0 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -1,25 +1,10 @@ return { "nvim-treesitter/nvim-treesitter", + branch = "main", + lazy = false, build = ":TSUpdate", config = function() - require("nvim-treesitter.configs").setup({ - ensure_installed = { "lua", "go", "zig", "markdown", "json", "yaml", "javascript", - "typescript", "bash", "python", "c_sharp", "cpp", "gleam", "svelte" }, - indent = { enable = true }, - sync_install = false, - - highlight = { enable = true }, - }) - - local treesitter_parser_config = require("nvim-treesitter.parsers").get_parser_configs() - treesitter_parser_config.templ = { - install_info = { - url = "https://github.com/vrischmann/tree-sitter-templ.git", - files = { "src/parser.c", "src/scanner.c" }, - branch = "master", - }, - } - - vim.treesitter.language.register("templ", "templ") + local treesitter = require("nvim-treesitter") + treesitter.install({ "python", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python" }) end } |
