Skip to content

Commit eec6019

Browse files
mochaaPgithub-actions[bot]
authored andcommitted
chore: Auto generate docs
1 parent 326afeb commit eec6019

File tree

5 files changed

+73
-3
lines changed

5 files changed

+73
-3
lines changed

doc/BUILTINS.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,7 @@ local sources = { null_ls.builtins.formatting.atlas_fmt }
19521952

19531953
#### Defaults
19541954

1955-
- Filetypes: `{ "hcl", "atlas-config", "atlas-schema-mysql", "atlas-schema-sqlite", "atlas-schema-mariadb", "atlas-schema-redshift", "atlas-schema-clickhouse", "atlas-schema-postgresql", "atlas-schema-mssql", "atlas-plan", "atlas-test"}`
1955+
- Filetypes: `{ "hcl", "atlas-config", "atlas-schema-mysql", "atlas-schema-sqlite", "atlas-schema-mariadb", "atlas-schema-redshift", "atlas-schema-clickhouse", "atlas-schema-postgresql", "atlas-schema-mssql", "atlas-plan", "atlas-test" }`
19561956
- Method: `formatting`
19571957
- Command: `atlas`
19581958
- Args: `{ "schema", "fmt", "$FILENAME" }`
@@ -3108,6 +3108,22 @@ local sources = { null_ls.builtins.formatting.nixpkgs_fmt }
31083108
- Method: `formatting`
31093109
- Command: `nixpkgs-fmt`
31103110

3111+
### [nix_flake_fmt](https://nix.dev/manual/nix/latest/command-ref/new-cli/nix3-fmt)
3112+
3113+
`nix fmt` - reformat your code in the standard style (this is a generic formatter, not to be confused with nixfmt, a formatter for .nix files)
3114+
3115+
#### Usage
3116+
3117+
```lua
3118+
local sources = { null_ls.builtins.formatting.nix_flake_fmt }
3119+
```
3120+
3121+
#### Defaults
3122+
3123+
- Filetypes: `{}`
3124+
- Method: `formatting`
3125+
- Args: `{ "$FILENAME" }`
3126+
31113127
### [npm_groovy_lint](https://github.com/nvuillam/npm-groovy-lint)
31123128

31133129
Lint, format and auto-fix Groovy, Jenkinsfile, and Gradle files.

doc/builtins.json

+18
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,21 @@
555555
"java"
556556
]
557557
},
558+
"atlas_fmt": {
559+
"filetypes": [
560+
"hcl",
561+
"atlas-config",
562+
"atlas-schema-mysql",
563+
"atlas-schema-sqlite",
564+
"atlas-schema-mariadb",
565+
"atlas-schema-redshift",
566+
"atlas-schema-clickhouse",
567+
"atlas-schema-postgresql",
568+
"atlas-schema-mssql",
569+
"atlas-plan",
570+
"atlas-test"
571+
]
572+
},
558573
"bean_format": {
559574
"filetypes": [
560575
"beancount"
@@ -885,6 +900,9 @@
885900
"nim"
886901
]
887902
},
903+
"nix_flake_fmt": {
904+
"filetypes": []
905+
},
888906
"nixfmt": {
889907
"filetypes": [
890908
"nix"

doc/null-ls.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*null-ls.txt* Last change: 2025 January 11
1+
*null-ls.txt* Last change: 2025 January 12
22

33
==============================================================================
44
Table of Contents *null-ls-table-of-contents*

lua/null-ls/builtins/_meta/filetype_map.lua

+31-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,36 @@ return {
1717
astro = {
1818
formatting = { "prettier", "prettierd" }
1919
},
20+
["atlas-config"] = {
21+
formatting = { "atlas_fmt" }
22+
},
23+
["atlas-plan"] = {
24+
formatting = { "atlas_fmt" }
25+
},
26+
["atlas-schema-clickhouse"] = {
27+
formatting = { "atlas_fmt" }
28+
},
29+
["atlas-schema-mariadb"] = {
30+
formatting = { "atlas_fmt" }
31+
},
32+
["atlas-schema-mssql"] = {
33+
formatting = { "atlas_fmt" }
34+
},
35+
["atlas-schema-mysql"] = {
36+
formatting = { "atlas_fmt" }
37+
},
38+
["atlas-schema-postgresql"] = {
39+
formatting = { "atlas_fmt" }
40+
},
41+
["atlas-schema-redshift"] = {
42+
formatting = { "atlas_fmt" }
43+
},
44+
["atlas-schema-sqlite"] = {
45+
formatting = { "atlas_fmt" }
46+
},
47+
["atlas-test"] = {
48+
formatting = { "atlas_fmt" }
49+
},
2050
beancount = {
2151
diagnostics = { "bean_check" },
2252
formatting = { "bean_format" }
@@ -175,7 +205,7 @@ return {
175205
},
176206
hcl = {
177207
diagnostics = { "terragrunt_validate" },
178-
formatting = { "hclfmt", "packer", "terragrunt_fmt" }
208+
formatting = { "atlas_fmt", "hclfmt", "packer", "terragrunt_fmt" }
179209
},
180210
html = {
181211
diagnostics = { "markuplint", "tidy" },

lua/null-ls/builtins/_meta/formatting.lua

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ return {
1010
astyle = {
1111
filetypes = { "arduino", "c", "cpp", "cs", "java" }
1212
},
13+
atlas_fmt = {
14+
filetypes = { "hcl", "atlas-config", "atlas-schema-mysql", "atlas-schema-sqlite", "atlas-schema-mariadb", "atlas-schema-redshift", "atlas-schema-clickhouse", "atlas-schema-postgresql", "atlas-schema-mssql", "atlas-plan", "atlas-test" }
15+
},
1316
bean_format = {
1417
filetypes = { "beancount" }
1518
},
@@ -196,6 +199,9 @@ return {
196199
nimpretty = {
197200
filetypes = { "nim" }
198201
},
202+
nix_flake_fmt = {
203+
filetypes = {}
204+
},
199205
nixfmt = {
200206
filetypes = { "nix" }
201207
},

0 commit comments

Comments
 (0)