Giter VIP home page Giter VIP logo

Comments (3)

lucario387 avatar lucario387 commented on June 25, 2024 1

I suspect this is because of gf relying on syntax.

Edit: I also can't access your reproduce files. The rails folder is inaccessible

Please add

  highlight = {
    enable = true,
    -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
    -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
    -- Using this option may slow down your editor, and you may see some duplicate highlights.
    -- Instead of true it can also be a list of languages
    additional_vim_regex_highlighting = true,
  },

Ending note: Please don't just download/install the repo through a plugin, please also read README.md if possible

from nvim-treesitter.

lucario387 avatar lucario387 commented on June 25, 2024 1

May I ask, where can I find out more information on this? I had checked the help docs for the gf command, but it doesn't mention syntax at all.

I just skimmed through rails.vim in vim-rails, and see a syntax file, and a gf keymap that seems to be calling a script inside rails.vim. So I suspect that's the cause

from nvim-treesitter.

thewatts avatar thewatts commented on June 25, 2024

Thank you for your quick response!

I can confirm - that does indeed fix the issue 🎉


I suspect this is because of gf relying on syntax.

May I ask, where can I find out more information on this? I had checked the help docs for the gf command, but it doesn't mention syntax at all.

I think given that information (that gf relies on syntax), the documentation in the README would have made more sense as to why I had this issue.

I'd love to be able to dig into that more, if you happen to know offhand where to find the information.

(If not, that's okay, too).


Please don't just download/install the repo through a plugin, please also read README.md if possible

I completely understand and appreciate your patience. For context - if I remember correctly - I had used this section as a reference for my initial setup of treesitter.


Thank you again for your help!

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.