neo2005/config/plugins/lang/html.nix

45 lines
1 KiB
Nix

{ pkgs, lib, ... }:
{
plugins = {
conform-nvim.settings = {
formatters_by_ft.html = [
"prettierd"
"prettier"
];
formatters = {
prettierd.command = "${pkgs.prettierd}/bin/prettierd";
prettier.command = "${pkgs.nodePackages.prettier}/bin/prettier";
};
};
lsp = {
servers = {
html = {
enable = true;
cmd = [
"${pkgs.vscode-langservers-extracted}/bin/vscode-html-language-server"
"--stdio"
];
};
# TODO fix
# error: The option `plugins.lsp.servers.vuels.package' was accessed but has no value defined. Try setting the option.
#vuels.enable = true; # Vue
};
enabledServers = [
{
name = "emmet_language_server";
extraOptions = {
cmd = [
(lib.getExe pkgs.emmet-language-server)
"--stdio"
];
filetypes = [ "html" ];
};
}
];
};
};
}