feat: add TypeScript/JavaScript LSP and formatting support

Add ts_ls and eslint language servers for TypeScript/JavaScript development.
Configure prettier formatter for JS, CSS, and HTML files.
This commit is contained in:
♥ Minnie ♥ 2025-10-20 22:27:02 +08:00
parent ac16609e1f
commit 5e370bf247
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
2 changed files with 19 additions and 0 deletions

View file

@ -25,6 +25,15 @@
rust = [ rust = [
"rustfmt" "rustfmt"
]; ];
javascript = [
"prettier"
];
css = [
"prettier"
];
html = [
"prettier"
];
}; };
# Install our formatters # Install our formatters
@ -51,6 +60,9 @@
rustfmt = { rustfmt = {
command = lib.getExe pkgs.rustfmt; command = lib.getExe pkgs.rustfmt;
}; };
prettier = {
command = lib.getExe pkgs.prettierd;
};
}; };
# Receive notificaton when a formatter errors. # Receive notificaton when a formatter errors.

View file

@ -41,6 +41,13 @@
installCargo = true; installCargo = true;
installRustc = true; installRustc = true;
}; };
# TypeScript/JavaScript
ts_ls = {
enable = true;
};
eslint = {
enable = true;
};
}; };
keymaps = { keymaps = {