Neovim: Disable prettierd formatter in favor of prettier
This commit is contained in:
@ -70,8 +70,8 @@ in {
|
|||||||
google-java-format
|
google-java-format
|
||||||
html-tidy
|
html-tidy
|
||||||
jq # json
|
jq # json
|
||||||
prettierd # html/css/js
|
# prettierd # Use prettier instead because of plugins
|
||||||
# nodePackages_latest.prettier # html/css/js/ts
|
# nodePackages_latest.prettier # Use local install as plugins change per project
|
||||||
rustfmt
|
rustfmt
|
||||||
stylua
|
stylua
|
||||||
]
|
]
|
||||||
@ -528,16 +528,16 @@ in {
|
|||||||
h = ["clang-format"];
|
h = ["clang-format"];
|
||||||
cpp = ["clang-format"];
|
cpp = ["clang-format"];
|
||||||
hpp = ["clang-format"];
|
hpp = ["clang-format"];
|
||||||
css = ["prettier" "prettierd"];
|
css = ["prettier"]; # "prettierd"
|
||||||
html = ["prettier" "prettierd"];
|
html = ["prettier"]; # "prettierd"
|
||||||
java = ["google-java-format"];
|
java = ["google-java-format"];
|
||||||
javascript = ["prettier" "prettierd"];
|
javascript = ["prettier"]; # "prettierd"
|
||||||
lua = ["stylua"];
|
lua = ["stylua"];
|
||||||
markdown = ["prettier" "prettierd"];
|
markdown = ["prettier"]; # "prettierd"
|
||||||
nix = ["alejandra"];
|
nix = ["alejandra"];
|
||||||
python = ["black"];
|
python = ["black"];
|
||||||
svelte = ["prettier" "prettierd"];
|
svelte = ["prettier"]; # "prettierd"
|
||||||
typescript = ["prettier" "prettierd"];
|
typescript = ["prettier"]; # "prettierd"
|
||||||
rust = ["rustfmt"];
|
rust = ["rustfmt"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -546,7 +546,8 @@ in {
|
|||||||
stop_after_first = true;
|
stop_after_first = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
format_on_save.__raw = ''
|
# format_on_save formats synchronously, format_after_save asynchronously
|
||||||
|
format_after_save.__raw = ''
|
||||||
function(bufnr)
|
function(bufnr)
|
||||||
-- Disable with a global or buffer-local variable
|
-- Disable with a global or buffer-local variable
|
||||||
if vim.g.disable_autoformat then
|
if vim.g.disable_autoformat then
|
||||||
@ -555,6 +556,8 @@ in {
|
|||||||
return { timeout_ms = 500, lsp_format = "fallback", }
|
return { timeout_ms = 500, lsp_format = "fallback", }
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
log_level.__raw = ''vim.log.levels.DEBUG'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user