kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

Project uses old treesitter setup

Open EzpieCo opened this issue 10 months ago • 5 comments

The current setup for treesitter in this project is outdated and causes error on running nvim.

The newer way of setting up treesitter has been given in the treesitter README.md.

If it would be ok I could do a quick PR to setup treesitter with the minimal config.

EzpieCo avatar Jan 24 '26 04:01 EzpieCo

remove the line:

main = 'nvim-treesitter.configs'

did the trick for me.

Barnoux avatar Jan 24 '26 16:01 Barnoux

@Barnoux for me personally I read the readme and this works the best along with lazy:

return {
    "nvim-treesitter/nvim-treesitter",
    lazy = false,
    build = ":TSUpdate",
    config = function()
        require('nvim-treesitter').install({
            'c', 'lua', 'javascript', 'typescript', 'python', 'go', 'java', 'vim', 'vimdoc'
        })

        vim.api.nvim_create_autocmd('FileType', {
            pattern = { 'c', 'lua', 'javascript', 'typescript', 'python', 'go', 'java' },
            callback = function() vim.treesitter.start() end,
        })
    end
}

EzpieCo avatar Jan 25 '26 09:01 EzpieCo

Ya, i just merged something similar to this - lmk if it doesn't work

tjdevries avatar Jan 27 '26 14:01 tjdevries

it works @tjdevries no funny errors.

EzpieCo avatar Jan 30 '26 04:01 EzpieCo

yall the laziest devs 🤦🤣 @tjdevries squiggle was fun!

wommy avatar Feb 24 '26 17:02 wommy