Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins/lsp: add templ language server #905

Merged
merged 2 commits into from
Jan 6, 2024

Conversation

rsHalford
Copy link
Contributor

Adds lsp support for templ, the HTML templating language for Go.

Copy link
Member

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ! Thanks for your contribution :)

@GaetanLepage GaetanLepage merged commit b0895fc into nix-community:main Jan 6, 2024
18 checks passed
@psyos10
Copy link

psyos10 commented Jan 7, 2024

Hey, new to nixos, may be my problem. I have been getting nixos-rebuild issues that point to this addition in nixvim, error: attribute 'templ' missing at plugins/lsp/helpers.nix:6:15 , my config worked fine before this.

@traxys
Copy link
Member

traxys commented Jan 7, 2024

There could be multiple reasons for this:

  • Are you using the correct nixvim branch for your environement? This means that if you are using nixpkgs/nixos/home-manager 23.11 then you need to use the 23.11 branch of nixvim
  • If you are using nixpkgs/nixos/home-manager unstable they need to be up-to-date, templ was added on the 21st of december, so you need to have at least this version. Generally we only guarantee that the master of nixvim works with a very recent (not more than a week old) nixpkgs

@psyos10
Copy link

psyos10 commented Jan 7, 2024

Apologies yep, the 23.11 works for me, I was initially confused by why the templ package wasn't there. My nixpkgs isn't that up to date. Thanks.

@siph siph mentioned this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants