index — dots-the-third @ ec94cc7699466753fa608f482cde8ef147a9cd7c

I don't need nix, I have a way worse solution!

nvim/.config/nvim/lua/crispy/plugins/treesitter.lua (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
return
    { "nvim-treesitter/nvim-treesitter",
        lazy = false,
        build = ":TSUpdate",  -- Use the build command to update Treesitter parsers                                                                                                                                                                                                                       
        config = function()
            local configs = require("nvim-treesitter.configs")

            configs.setup({
                ensure_installed = {
                    "c", "lua", "vim", "vimdoc", "query", "elixir", "javascript", "html", "python", "go", "hyprlang", "bash", "fish", "cpp", "markdown"
                },
                sync_install = false,  -- Do not install parsers synchronously
                highlight = { enable = true },  -- Enable Treesitter highlighting
                indent = { enable = true },  -- Enable Treesitter-based indentation
            })
        end
    }