zapling / mason-conform.nvim Goto Github PK
View Code? Open in Web Editor NEWAutomatically install formatters registred with conform.nvim via mason
License: Apache License 2.0
Automatically install formatters registred with conform.nvim via mason
License: Apache License 2.0
In conform
, I have my c
formatter specified as:
formatters_by_ft = {
c = { "clang-format" },
},
But this plugin didn't auto-install clang-format
. Then I noticed in the mapping that it is expecting clang_format
as the name instead.
Was there a specific reason this was done? Could a mapping for clang-format
be added? This works fine for conform
and is also the actual name of the executable.
My Neovim configuration is declarative and I prefer to write the configuration once which automatically installs all the required packages.
Could you provide ensure_installed
mechanism, like in mason-lspconfig.nvim or mason-null-ls.nvim?
Some tools will be present on the conform config but do not need to be installed by Mason. For example, I might have prettier
installed system-wide. Or jq
or xmllint
.
It will be beneficial to try to detect, any given tool, whether it is already installed or not. This will avoid duplicates and desired behavior.
Sometimes it's preferable to install a formatter manually rather than through mason. For example, rustfmt
prints an error message in mason:
deprecated: rustfmt should now be installed via rustup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.