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 = [
|
||||
"rustfmt"
|
||||
];
|
||||
javascript = [
|
||||
"prettier"
|
||||
];
|
||||
css = [
|
||||
"prettier"
|
||||
];
|
||||
html = [
|
||||
"prettier"
|
||||
];
|
||||
};
|
||||
|
||||
# Install our formatters
|
||||
|
|
@ -51,6 +60,9 @@
|
|||
rustfmt = {
|
||||
command = lib.getExe pkgs.rustfmt;
|
||||
};
|
||||
prettier = {
|
||||
command = lib.getExe pkgs.prettierd;
|
||||
};
|
||||
};
|
||||
|
||||
# Receive notificaton when a formatter errors.
|
||||
|
|
|
|||
|
|
@ -41,6 +41,13 @@
|
|||
installCargo = true;
|
||||
installRustc = true;
|
||||
};
|
||||
# TypeScript/JavaScript
|
||||
ts_ls = {
|
||||
enable = true;
|
||||
};
|
||||
eslint = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue