Skip to content

Highlighting completely broken in ts and tsx file #383

@technophilist

Description

@technophilist

Info

Syntax highlighting is completely broken for ts and tsx files. Other themes are working. Treesitter is also working properly.

Nvim version: v0.11.5
Treesitter is also installed

Screenshot

Image Image

Treesitter config

return {
	-- for generating AST: used for highlighting and indenting
	"nvim-treesitter/nvim-treesitter",
	lazy = false,
	build = ":TSUpdate",
	config = function()
		local config = require("nvim-treesitter")
		config.setup({
			-- ensure parsers for detected language is auto-installed
			auto_install = false,
			ensure_installed = {
				"typescript",
				"tsx",
				"javascript",
				"lua",
				"python",
			},
			highlight = { enable = true },
			indent = { enable = true },
		})
	end,
}

Theme config

return {
	"projekt0n/github-nvim-theme",
	name = "github-theme",
	lazy = false,
	priority = 1000,
	config = function()
		vim.cmd("colorscheme github_dark_default")
	end,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions