GithubHelp home page GithubHelp logo

Comments (5)

JoosepAlviste avatar JoosepAlviste commented on June 2, 2024 1

That seems quite weird, I couldn't reproduce the issue. Did this just start happening recently? There were some breaking changes merged a day or 2 ago: #82 but I don't know if they would cause such issues.

One thing to try would be to update your Neovim version, I think that one of the recent PRs that was merged required Neovim version 0.9.4 as it uses some newer Treesitter APIs.

If that doesn't help, then could you post a minimal configuration where the issue could be reproduced (based on https://github.com/JoosepAlviste/nvim-ts-context-commentstring/blob/main/utils/minimal_init.lua)? The PR template should have instructions for starting a new minimal config: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/blob/main/.github/ISSUE_TEMPLATE/bug_report.yml.

from nvim-ts-context-commentstring.

kohane27 avatar kohane27 commented on June 2, 2024 1

@JoosepAlviste Hello! Hope you're doing well.

I finally realized the problem. For some reason in option.lua I have the following:

opt.filetype = "on"

And this was the cause of the bug. After removing this faulty line, nvim-ts-context-commentstring works flawlessly again.

My apologies and thank you again. Have a good day!

from nvim-ts-context-commentstring.

kohane27 avatar kohane27 commented on June 2, 2024

Thank you for getting back to me. I appreciate it!

I can confirm this bug only exists after the BR a few days ago.

I'm currently on Neovim 0.9.4:

:version
NVIM v0.9.4
Build type: Release
LuaJIT 2.1.1700008891

I'll look into it and provide the minimal config.

Thank you again for creating this awesome plugin!

from nvim-ts-context-commentstring.

kohane27 avatar kohane27 commented on June 2, 2024

Apologies for my late reply. I still have no idea why the latest commit would not work, but I found the commit before the BR works:

{ "JoosepAlviste/nvim-ts-context-commentstring", commit = "6c30f3c8915d7b31c3decdfe6c7672432da1809d" },

I think I'll stick to it for now. I'll debug when I have time. Thank you!

from nvim-ts-context-commentstring.

JoosepAlviste avatar JoosepAlviste commented on June 2, 2024

Not sure what the issue could be since I can't reproduce it 😕 on is such a weird value for filetype to have...

The only thing I can think of right now would be to use the minimal config as a base to try to reproduce it, adding small bits of your configuration at a time.

By the way, if you manually do :set filetype=lua in a Lua file, then does it provide the correct highlighting and commentstring updating?

from nvim-ts-context-commentstring.

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.