Compare commits

..

No commits in common. "b321c010477adc2c37bbd37a2c24b188418f3841" and "152acfce5ade0edb8fea3c8d6a6c20b7eb42b9ba" have entirely different histories.

View file

@ -20,6 +20,20 @@
defaultFormat = "format_r";
formats = {
prettier = {
package = pkgs.nodePackages.prettier;
nullConfig = ''
local prettier = null_ls.builtins.formatting.prettier.with({
filetypes = { "r" },
extra_args = {
"--plugin", "prettier-plugin-r",
"--parser", "r"
}
})
table.insert(ls_sources, prettier)
'';
};
styler = {
package = pkgs.rWrapper.override {
packages = with pkgs.rPackages; [styler];