NvChad / starter

Starter config for NvChad
The Unlicense
66 stars 255 forks source link

custom install nvim-treesitter breaks theme on a .go file #18

Closed nkk1 closed 2 months ago

nkk1 commented 3 months ago

If I add nvim-treesitter at ~/.config/nvim/lua/plugins/init.lua with my configs, it breaks the theme. ie everytime I have to th and select the theme.

{
    "nvim-treesitter/nvim-treesitter",
    config = function()
      require("nvim-treesitter.configs").setup {
        ensure_installed = {
          "go",
        },
      }
    end,
  },

I see that nvim-treesitter is already installed by NvChad. Is it possible to add my custom configs to the existing one?

If I add "nvim-treesitter/nvim-treesitter-textobjects" it breaks the theme as well.

I do see the theme getting updated in chardrc.lua file

M.ui = {
  theme = "ashes",
siduck commented 3 months ago

show what u mean by theme break, pls make a video or pic

olafmustafar commented 2 months ago

Hi, I believe the same thing is happening on my end after I switched to nvchad 2.5. But with the plugin { "Eandrju/cellular-automaton.nvim" , lazy=false}, instead of tree-sitter

Here is a comparison:

image image

siduck commented 2 months ago

your code isnt even loading the default hlgroups of treesitter from base46 :/

siduck commented 2 months ago

image

you do know that lazy.nvim doesnt merge "functions"? so please copy the default code from config func and then add your code below it