feat: add helix LSP configs

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-11-07 17:04:03 -06:00
parent d68349edb6
commit 4316f0e219
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
5 changed files with 17 additions and 24 deletions

View File

@ -0,0 +1,5 @@
[[language]]
name = "templ"
language-id = "html"
language-servers = ["templ", "vscode-html-language-server", "tailwindcss-ls"]

View File

@ -8,6 +8,9 @@ Links are sourced from [links.yaml](links.yaml).
## Dev
NOTE: Currently the tailwind LSP assumes this is a JS project with node_modules, so the standalone CLI setup used with the bundled Catppuccin theme breaks the LSP when it ingests the config.
To get tailwind's LSP to work, the plugin needs to be temporarily commented out.
### Tools
```

View File

@ -5,11 +5,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1689068808,
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
"lastModified": 1694529238,
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
"type": "github"
},
"original": {
@ -20,11 +20,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1692044854,
"narHash": "sha256-0FcjKrLH9YP/G+oEx7LQO4he/F3BxkAKsgU12q5jopw=",
"lastModified": 1699393291,
"narHash": "sha256-M+cAaIqvk1zh1tZ2lk2ZcjEPMs1Akuy7s2JZjwO43sc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fd91dcf3107361981d703f09e95fe02299b57ba3",
"rev": "e7704a1b645c94d51fdfdb2875638d3ffae0f15b",
"type": "github"
},
"original": {

View File

@ -37,25 +37,13 @@
mv dist $out
'';
};
packages.default1 = pkgs.stdenv.mkDerivation {
pname = "jolheiser.com";
version = "site";
src = ./.;
nativeBuildInputs = with pkgs; [go nur.templ tailwind-ctp];
buildPhase = ''
runHook preBuild
go generate
mv dist $out
runHook postBuild
'';
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
go
nur.templ
tailwind-ctp
tailwindcss-language-server
vscode-langservers-extracted
];
};
}

View File

@ -1,9 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./dist/*.html"],
theme: {
extend: {},
},
content: ["./dist/*.html", "*.templ"],
plugins: [require("@catppuccin/tailwindcss")],
}