aboutsummaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/treesitter.lua
blob: cf947b9941b6f0212f522da92f1946c1fc94ebad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pre { line-height: 1
return {
  "nvim-treesitter/nvim-treesitter",
  build = ":TSUpdate",
  config = function()
    require("nvim-treesitter.configs").setup({
      ensure_installed = { "lua", "go", "zig", "markdown"<
n>, "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") end }