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:
parent
ac16609e1f
commit
5e370bf247
2 changed files with 19 additions and 0 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,13 @@
|
||||||
installCargo = true;
|
installCargo = true;
|
||||||
installRustc = true;
|
installRustc = true;
|
||||||
};
|
};
|
||||||
|
# TypeScript/JavaScript
|
||||||
|
ts_ls = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
eslint = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue