Add html and css linting to helix

This commit is contained in:
Lillian Violet 2024-09-18 16:08:00 +02:00
parent 2f6ba250cc
commit 08dcbada27
2 changed files with 34 additions and 0 deletions

View file

@ -21,6 +21,7 @@
home.packages = with pkgs; [
# System tools:
vscode-langservers-extracted
sops
zsh
bat

View file

@ -74,8 +74,41 @@
args = ["-q"];
};
}
{
name = "html";
language-id = "html";
auto-format = true;
file-types = ["htm" "html"];
language-servers = ["vscode-html-language-server" "vscode-eslint-language-server"];
}
{
name = "css";
language-id = "css";
auto-format = true;
file-types = ["css"];
language-servers = ["vscode-css-language-server" "vscode-eslint-language-server"];
}
{
name = "json";
language-id = "json";
auto-format = true;
file-types = ["json"];
language-servers = ["vscode-json-language-server" "vscode-eslint-language-server"];
}
];
language-server = {
vscode-html-language-server = {
command = "vscode-html-language-server";
};
vscode-css-language-server = {
command = "vscode-css-language-server";
};
vscode-eslint-language-server = {
command = "vscode-eslint-language-server";
};
vscode-json-language-server = {
command = "vscode-json-language-server";
};
pylsp = {
config.pylsp.plugins = {
flake8 = {enabled = false;};