Skip to content

Commit 8da2da7

Browse files
committed
embed more formatters into vi
1 parent 18767cf commit 8da2da7

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

prv

Submodule prv updated from fc9e157 to 8e2e8ae

pub/vi/nix/default.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ in
3838
let g:ormolu_disable = 1
3939
'';
4040
};
41+
pretty = pkgs.writeShellApplication {
42+
name = "prettier";
43+
text = ''
44+
${
45+
pkgs.nodePackages.prettier
46+
}/bin/prettier --plugin ${
47+
pkgs.nodePackages.prettier-plugin-toml
48+
}/lib/node_modules/prettier-plugin-toml/lib/index.js "$@"
49+
'';
50+
};
4151
lesspipeWrapper = writeShellScriptBin "lesspipe" "${lesspipe}/bin/lesspipe.sh";
4252
vi-src = stdenv.mkDerivation {
4353
name = "vi-src";
@@ -55,7 +65,7 @@ in
5565
customRC =
5666
''
5767
set runtimepath+=${vi-src}
58-
let $PATH.=':${silver-searcher}/bin:${nodejs}/bin:${less}/bin:${lesspipeWrapper}/bin:${python311Packages.grip}/bin:${xdg-utils}/bin:${git}/bin:${jre8}/bin:${stylua}/bin:${sleek}/bin'
68+
let $PATH.=':${silver-searcher}/bin:${nodejs}/bin:${less}/bin:${lesspipeWrapper}/bin:${python311Packages.grip}/bin:${xdg-utils}/bin:${git}/bin:${jre8}/bin:${stylua}/bin:${sleek}/bin:${pretty}/bin:${html-tidy}/bin'
5969
let $SHELL='/run/current-system/sw/bin/bash'
6070
let g:vimBackground = '${vimBackground}'
6171
let g:vimColorScheme = '${vimColorScheme}'

pub/vi/vimrc.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,6 @@ let g:neoformat_toml_prettier = {
775775
\ 'exe': 'prettier',
776776
\ 'args': ['--stdin-filepath', '"%:p"'],
777777
\ 'stdin': 1,
778-
\ 'try_node_exe': 1,
779778
\ }
780779

781780
"

0 commit comments

Comments
 (0)