feat(nvim): new js formatter

This commit is contained in:
Florian Schmitt 2025-01-19 16:35:37 +01:00
parent 0d0758b705
commit 648ede0839
3 changed files with 9 additions and 7 deletions

View file

@ -3,13 +3,12 @@ local options = {
lua = { "stylua" },
css = { "prettier" },
html = { "prettier" },
js = { "prettier" },
javascript = { "prettier" },
typescript = { "prettier" },
js = { "eslint_d" },
javascript = { "eslint_d" },
typescript = { "eslint_d" },
php = { "php_cs_fixer" },
python = { "black" },
},
format_on_save = {
timeout_ms = 15000,
lsp_fallback = true,

View file

@ -46,7 +46,7 @@
};
# Set your time zone.
time.timeZone = "Europe/Moscow";
time.timeZone = "Europe/Paris";
# Select internationalisation properties.
i18n.defaultLocale = "fr_FR.UTF-8";

View file

@ -96,8 +96,11 @@
# brcmfmac being loaded during hibernation would not let a successful resume
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
# Also brcmfmac could randomly crash on resume from sleep.
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac && ${pkgs.kmod}/bin/modprobe brcmfmac_wcc";
powerDownCommands = lib.mkBefore "${pkgs.kmod}/bin/rmmod brcmfmac_wcc && ${pkgs.kmod}/bin/rmmod brcmfmac";
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac";
powerDownCommands = lib.mkBefore ''
${pkgs.kmod}/bin/rmmod -f -v brcmfmac_wcc 2>/dev/null || true
${pkgs.kmod}/bin/rmmod brcmfmac
'';
};
# USB subsystem wakes up MBP right after suspend unless we disable it.