Giter VIP home page Giter VIP logo

Comments (7)

clason avatar clason commented on July 22, 2024

Cannot reproduce. Please

  1. try the latest neovim nightly (download from releases page)
  2. make sure the Haskell parser is at the latest version
  3. share your nvim-treesitter configuration

from nvim-treesitter.

Devalyus avatar Devalyus commented on July 22, 2024

Hi!

  1. As for your first request sorry I cannot try the nightly nvim version.
  2. It is okay.
{ -- Highlight, edit, and navigate code
    "nvim-treesitter/nvim-treesitter",
    build = ":TSUpdate",
    opts = {
      ensure_installed = { "bash", "c", "html", "lua", "markdown", "vim", "vimdoc" },
      -- Autoinstall languages that are not installed
      auto_install = true,
      highlight = {
        enable = true,
        -- Some languages depend on vim's regex highlighting system (such as Ruby) for indent rules.
        --  If you are experiencing weird indenting issues, add the language to
        --  the list of additional_vim_regex_highlighting and disabled languages for indent.
        additional_vim_regex_highlighting = { "ruby" },
      },
      indent = { enable = true, disable = { "ruby" } },
    },
    config = function(_, opts)
      -- [[ Configure Treesitter ]] See `:help nvim-treesitter`

      ---@diagnostic disable-next-line: missing-fields
      require("nvim-treesitter.configs").setup(opts)

      -- There are additional nvim-treesitter modules that you can use to interact
      -- with nvim-treesitter. You should go explore a few and see what interests you:
      --
      --    - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
      --    - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
      --    - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
    end,
}

from nvim-treesitter.

Devalyus avatar Devalyus commented on July 22, 2024

For now I have solved by disabling tree sitter for haskell.

from nvim-treesitter.

clason avatar clason commented on July 22, 2024

Try disabling indent for Haskell.

from nvim-treesitter.

Devalyus avatar Devalyus commented on July 22, 2024

Disabling indent for haskell did not help...

from nvim-treesitter.

clason avatar clason commented on July 22, 2024

Then there's nothing to be done here. Please do test a nightly build of Neovim.

from nvim-treesitter.

clason avatar clason commented on July 22, 2024

I could reproduce the minimal(!) repro in tree-sitter/tree-sitter-haskell#119. So this is a parser issue that will be fixed soon.

from nvim-treesitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.