folke / ts-comments.nvim

Tiny plugin to enhance Neovim's native comments
Apache License 2.0
321 stars 23 forks source link

doubt: i`m setting up correctly? #24

Closed m1guer closed 3 months ago

m1guer commented 3 months ago

init.lua:

require("ts-comments")

plugins/init.lua

{
    "folke/ts-comments.nvim",
    opts = {},
    event = "VeryLazy",
    enabled = vim.fn.has "nvim-0.10.0" == 1,
  }

and when i comment a tsx or jsx file returns me this: image

folke commented 3 months ago

Did you install the correct treesitter parsers for tsx and typescript? What happens when you do :InspectTree? You are on Neovim >= 0.10 right?