Giter VIP home page Giter VIP logo

Comments (8)

vandalt avatar vandalt commented on September 23, 2024 5

Your last commit fixes it for me. Thanks!

from nvim-treesitter.

clason avatar clason commented on September 23, 2024 4

Ok, I'll adjust the compat guard. Thanks!

from nvim-treesitter.

clason avatar clason commented on September 23, 2024 1

Sorry, I'll not add short-term workarounds for upstream bugs that will get fixed. (master branch is in principle frozen, and these fixes were an exception.)

from nvim-treesitter.

clason avatar clason commented on September 23, 2024

Yes, that is a known issue (the function was deprecated without a proper replacement). This will be fixed before the 0.11 release, of course. For now, this is the best we can do here.

I would recommend sticking with the 0.10 release for the near future.

from nvim-treesitter.

barrydevp avatar barrydevp commented on September 23, 2024

@clason Actually, 0.10 released version has the same issue nvim-treesitter/nvim-treesitter-textobjects#617

from nvim-treesitter.

clason avatar clason commented on September 23, 2024

Please update and try again.

from nvim-treesitter.

barrydevp avatar barrydevp commented on September 23, 2024

For anyone who uses the nightly version needs to wait for the upstream update and pre-process the arguments before passing them to compat.flatten.

from nvim-treesitter.

barrydevp avatar barrydevp commented on September 23, 2024

@clason just wonder if we could make a workaround for the unstable version.

https://github.com/nvim-treesitter/nvim-treesitter/blob/00a8cfd562dc805eb4d732fbca35e23640dbf7c8/lua/nvim-treesitter/utils.lua#L81C1-L95C4

diff --git a/lua/nvim-treesitter/utils.lua b/lua/nvim-treesitter/utils.lua
index d920f4a6..7521be0c 100644
--- a/lua/nvim-treesitter/utils.lua
+++ b/lua/nvim-treesitter/utils.lua
@@ -86,7 +86,7 @@ function M.setup_commands(mod, commands)
     local parts = require("nvim-treesitter.compat").flatten {
       "command!",
       "-bar",
-      def.args,
+      def.args or {},
       command_name,
       call_fn,
     }

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.