Giter Club home page Giter Club logo

Comments (5)

kauffinger avatar kauffinger commented on July 18, 2024 1

Found the issue, it seems that blade as a language causes this, as for some reason, the LSP fails with it now:
[WARN][2023-12-13 07:51:50] ...lsp/handlers.lua:537 "textDocument/didOpen ignored. file:///Users/.../resources/views/pages/links/index.blade.php has unsupported language ID blade."

The fix is to just remove blade as an additional language, so nvim sees it as php. I have no idea why. It might be due to the upcoming release of blade support, thanks to treesitter-blade.

I'll see if removing it has any consequences I am not aware of and push the new version asap. Thanks for noticing!

from lazyvim.

kauffinger avatar kauffinger commented on July 18, 2024 1

Hi there, I tried to just use nvim-lspconfig to get it to work, but it didn't. We now have two hacky autocommands that trick intelephense into thinking it's in php, then switch back to blade. This way everything works.

If anyone knows if this can be done cleaner, please comment / push a pr!

Anyways, should work now @MarcosIgnacioo

from lazyvim.

MarcosIgnacioo avatar MarcosIgnacioo commented on July 18, 2024 1

THANK UUUU LOV U BESTIEEEEEE ALSO SO DAM GOOD CONFIGMANNNNNN

from lazyvim.

kauffinger avatar kauffinger commented on July 18, 2024

Sometimes, when i use s after starting nvim, this happens for me, too.
If that is not the case, you could try adding blade to your nvim-lpsconfig:
See here for the config spec and here for the file that needs to be adjusted.

Let me know if that works for you / open a pr if it does :)

from lazyvim.

kauffinger avatar kauffinger commented on July 18, 2024

Just tried and realised it is broken for me, too. My suggested fix did not help yet, I'll look into it.

from lazyvim.

Related Issues (7)

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.