feat(nvim): new js formatter
This commit is contained in:
parent
0d0758b705
commit
648ede0839
3 changed files with 9 additions and 7 deletions
|
@ -3,13 +3,12 @@ local options = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
css = { "prettier" },
|
css = { "prettier" },
|
||||||
html = { "prettier" },
|
html = { "prettier" },
|
||||||
js = { "prettier" },
|
js = { "eslint_d" },
|
||||||
javascript = { "prettier" },
|
javascript = { "eslint_d" },
|
||||||
typescript = { "prettier" },
|
typescript = { "eslint_d" },
|
||||||
php = { "php_cs_fixer" },
|
php = { "php_cs_fixer" },
|
||||||
python = { "black" },
|
python = { "black" },
|
||||||
},
|
},
|
||||||
|
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
timeout_ms = 15000,
|
timeout_ms = 15000,
|
||||||
lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Moscow";
|
time.timeZone = "Europe/Paris";
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||||
|
|
|
@ -96,8 +96,11 @@
|
||||||
# brcmfmac being loaded during hibernation would not let a successful resume
|
# brcmfmac being loaded during hibernation would not let a successful resume
|
||||||
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
|
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
|
||||||
# Also brcmfmac could randomly crash on resume from sleep.
|
# Also brcmfmac could randomly crash on resume from sleep.
|
||||||
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac && ${pkgs.kmod}/bin/modprobe brcmfmac_wcc";
|
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac";
|
||||||
powerDownCommands = lib.mkBefore "${pkgs.kmod}/bin/rmmod brcmfmac_wcc && ${pkgs.kmod}/bin/rmmod 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.
|
# USB subsystem wakes up MBP right after suspend unless we disable it.
|
||||||
|
|
Loading…
Add table
Reference in a new issue