mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/conform-nvim: add automatic installation of formatters
Signed-off-by: saygo-png <saygo.mail@proton.me>
This commit is contained in:
parent
d113982eba
commit
fd0c423550
4 changed files with 298 additions and 1 deletions
|
|
@ -4,6 +4,21 @@
|
|||
plugins.conform-nvim.enable = true;
|
||||
};
|
||||
|
||||
all-formatters =
|
||||
let
|
||||
allFormatters = lib.importJSON ../../../../../generated/conform-formatters.json;
|
||||
in
|
||||
{
|
||||
plugins.conform-nvim = {
|
||||
enable = true;
|
||||
autoInstall = {
|
||||
enable = true;
|
||||
enableWarnings = false;
|
||||
};
|
||||
settings.formatters_by_ft."*" = allFormatters;
|
||||
};
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.conform-nvim = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue