feat: tailwind-ctp-lsp

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-11-07 18:32:31 -06:00
parent 4316f0e219
commit 4b9c0c2702
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
3 changed files with 29 additions and 5 deletions

View File

@ -8,9 +8,6 @@ Links are sourced from [links.yaml](links.yaml).
## Dev ## 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 ### Tools
``` ```

View File

@ -58,7 +58,8 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur", "nur": "nur",
"tailwind-ctp": "tailwind-ctp" "tailwind-ctp": "tailwind-ctp",
"tailwind-ctp-lsp": "tailwind-ctp-lsp"
} }
}, },
"systems": { "systems": {
@ -95,6 +96,26 @@
"type": "git", "type": "git",
"url": "https://git.jojodev.com/jolheiser/tailwind-ctp" "url": "https://git.jojodev.com/jolheiser/tailwind-ctp"
} }
},
"tailwind-ctp-lsp": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1699401590,
"narHash": "sha256-nx8ExuBRUux9eXSUgkWp1LJMvA3dmA76+2xggZjHTU0=",
"ref": "refs/heads/master",
"rev": "b321333ad08bf21db242f246b10ad4a50b8fc8a0",
"revCount": 848,
"type": "git",
"url": "https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense"
},
"original": {
"type": "git",
"url": "https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -10,6 +10,10 @@
url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp"; url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
tailwind-ctp-lsp = {
url = "git+https://git.jojodev.com/jolheiser/tailwind-ctp-intellisense";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
@ -18,12 +22,14 @@
nixpkgs, nixpkgs,
nur, nur,
tailwind-ctp, tailwind-ctp,
tailwind-ctp-lsp,
} @ inputs: } @ inputs:
flake-utils.lib.eachDefaultSystem ( flake-utils.lib.eachDefaultSystem (
system: let system: let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
nur = inputs.nur.packages.${system}; nur = inputs.nur.packages.${system};
tailwind-ctp = inputs.tailwind-ctp.packages.${system}.default; tailwind-ctp = inputs.tailwind-ctp.packages.${system}.default;
tailwind-ctp-lsp = inputs.tailwind-ctp-lsp.packages.${system}.default;
in { in {
packages.default = pkgs.buildGoModule { packages.default = pkgs.buildGoModule {
pname = "jolheiser.com"; pname = "jolheiser.com";
@ -42,7 +48,7 @@
go go
nur.templ nur.templ
tailwind-ctp tailwind-ctp
tailwindcss-language-server tailwind-ctp-lsp
vscode-langservers-extracted vscode-langservers-extracted
]; ];
}; };