mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-20 10:28:00 +00:00
Compare commits
No commits in common. "b321c010477adc2c37bbd37a2c24b188418f3841" and "152acfce5ade0edb8fea3c8d6a6c20b7eb42b9ba" have entirely different histories.
b321c01047
...
152acfce5a
1 changed files with 14 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue