Some template changes for deno work

This commit is contained in:
Daniel Flanagan 2024-03-15 01:33:17 -05:00
parent a602cc8ad2
commit 06a7949edb
7 changed files with 17 additions and 41 deletions

View file

@ -77,36 +77,6 @@ in {
unit = "\t"; unit = "\t";
}; };
} }
{
name = "javascript";
file-types = ["js" "mjs"];
scope = "source.js";
auto-format = true;
}
{
name = "typescript";
file-types = ["ts" "mts"];
scope = "source.ts";
auto-format = true;
}
{
name = "jsx";
file-types = ["jsx"];
scope = "source.jsx";
auto-format = true;
}
{
name = "tsx";
file-types = ["tsx"];
scope = "source.tsx";
auto-format = true;
}
{
name = "jsonc";
file-types = ["jsonc"];
scope = "source.jsonc";
auto-format = true;
}
# { # {
# name = "javascript"; # name = "javascript";

View file

@ -1,5 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
taplo # toml language server for editing helix configs per repo
watchexec watchexec
android-tools android-tools
libresprite libresprite
@ -7,6 +8,7 @@
wol wol
shellcheck shellcheck
shfmt shfmt
vscode-langservers-extracted
nodePackages.bash-language-server nodePackages.bash-language-server
xh xh
jq jq

View file

@ -1,2 +1,5 @@
/target # nix build results
/result
# direnv cache
/.direnv /.direnv

10
templates/deno/deno.json Normal file
View file

@ -0,0 +1,10 @@
{
"tasks": {
"dev": "deno run -A --watch=src,mod.ts mod.ts"
},
"fmt": {
"useTabs": true,
"semiColons": false,
"singleQuote": true
}
}

View file

@ -1,10 +0,0 @@
{
"tasks": {
"dev": "deno run -A --watch=src src/mod.ts",
},
"fmt": {
"useTabs": true,
"semiColons": false,
"singleQuote": true,
},
}

View file

@ -14,6 +14,7 @@
in { in {
deno-dev = pkgs.mkShell { deno-dev = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
vscode-langservers-extracted
deno deno
curl curl
xh xh