elixir-lang / tree-sitter-elixir

Elixir grammar for tree-sitter
https://elixir-lang.org/tree-sitter-elixir
Apache License 2.0
245 stars 24 forks source link

Symbols highighting is broken #43

Closed freevova closed 1 year ago

freevova commented 1 year ago

Symbols highlighting doesn't work for me:

defmodule Test do
  def call do
    %{name: "name", age: 20}
    [name: "name", age: 20]
  end
end

зображення

I use morhetz/gruvbox plugin for my color scheme, but symbol highlighting doesn't work with other color schemes as well.

Packer instruction is:

use {"nvim-treesitter/nvim-treesitter", config = require "plugins.treesitter", run = ":TSUpdate"}

and my configs are:

return function()
  local ts_config = require("nvim-treesitter.configs")

  ts_config.setup {
    ensure_installed = {
      "bash",
      "css",
      "elixir",
      "erlang",
      "haskell",
      "graphql",
      "javascript",
      "json",
      "lua",
      "html",
      "yaml"
    },
    highlight = {
      enable = true,
      use_languagetree = true
    },
    indent = {
      enable = true
    }
  }

  vim.opt.foldmethod = 'expr'
  vim.opt.foldexpr   = 'nvim_treesitter#foldexpr()'

  vim.cmd([[ autocmd BufReadPost,FileReadPost * normal zR ]])
end

Previously symbol highlighting worked correctly and only after updating pluginі something went wrong. Can someone help with this, please?

jonatanklosko commented 1 year ago

Hey @freevova! This seems more related to nvim-treesitter. @connorlay any ideas? :)

freevova commented 1 year ago

Thanks, @jonatanklosko. Will ask there.

ryanwinchester commented 1 year ago

Considering the dates, it is probably related to https://github.com/nvim-treesitter/nvim-treesitter/pull/1904

josevalim commented 1 year ago

Closing this for now, as it is not tree-sitter-elixir related per se. Glad to reopen otherwise.