nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

[BUG] `templ` files handled as plaintext files when templ LSP is enabled

Open JeroenoBoy opened this issue 1 year ago • 8 comments

Field Description
Plugin 'LSP'
Nixpkgs 24.05
Home Manager not used

  • [X] I have read the FAQ and my bug is not listed there.

Description

When enabling the templ LSP in the nix config, switching, opening a .templ file, it only shows white text, I'm not sure why this happens since everything else just works after enabling the LSP

Minimal, Reproducible Example (MRE)

Enable the Templ LSP server, then open a .templ file in a go project with templ installed

# see https://github.com/JeroenoBoy/Nix-framework/blob/main/modules/nvim for full nixvim config
programs.nixvim.plugins = {
  treesitter.enable = true;  

  lsp-format.enable = true;
  lsp = {
    enable = true;
    html.enable = true;
    htmx.enable = true;
    templ.enable = true;
    tailwindcss.enable = true;

    go.enable = true;
  };
}

JeroenoBoy avatar Aug 02 '24 18:08 JeroenoBoy