Replies: 5 comments
-
这是不同语言对应的格式化工具,根据需要安装对应的就好了,你现在有rustfmt就应该可以格式化rust代码了。 比如 stylelua 是格式化 lua 代码的,也可以去装一下 https://github.com/JohnnyMorganz/StyLua |
Beta Was this translation helpful? Give feedback.
-
每个格式化工具都需要手动安装吗?能不能配置自动安装呢? https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting 目录中的这些lua文件,是否和/null-ls.nvim插件配置有所关联呢?就是说,能否通过这些lua文件,来配置实现自动安装格式化工具呢? |
Beta Was this translation helpful? Give feedback.
-
应该还没有自动安装功能。那些lua文件只知道怎么调用对应的工具,需要手动安装后,在source里引用对应的lua文件。
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
并不是所有前端都用 eslint 和prettier,所以 可以不全局安装,checkhealth 应该只会检测是否全局安装,所以报错也应该没关系。 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions