File tree 5 files changed +46
-1
lines changed
5 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -2400,6 +2400,23 @@ local sources = { null_ls.builtins.formatting.fantomas }
2400
2400
- Command: ` fantomas `
2401
2401
- Args: ` { "$FILENAME" } `
2402
2402
2403
+ ### [ findent] ( https://github.com/gnikit/findent-pypi )
2404
+
2405
+ findent indents/beautifies/converts and can optionally generate the dependencies of Fortran sources.
2406
+
2407
+ #### Usage
2408
+
2409
+ ``` lua
2410
+ local sources = { null_ls .builtins .formatting .findent }
2411
+ ```
2412
+
2413
+ #### Defaults
2414
+
2415
+ - Filetypes: ` { "fortran" } `
2416
+ - Method: ` formatting `
2417
+ - Command: ` findent `
2418
+ - Args: ` {} `
2419
+
2403
2420
### [ fish_indent] ( https://fishshell.com/docs/current/cmds/fish_indent.html )
2404
2421
2405
2422
Indent or otherwise prettify a piece of fish code.
Original file line number Diff line number Diff line change 690
690
" fsharp"
691
691
]
692
692
},
693
+ "findent" : {
694
+ "filetypes" : [
695
+ " fortran"
696
+ ]
697
+ },
693
698
"fish_indent" : {
694
699
"filetypes" : [
695
700
" fish"
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ return {
118
118
formatting = { " fnlfmt" }
119
119
},
120
120
fortran = {
121
- formatting = { " fprettify" }
121
+ formatting = { " findent " , " fprettify" }
122
122
},
123
123
fsharp = {
124
124
formatting = { " fantomas" }
Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ return {
100
100
fantomas = {
101
101
filetypes = { " fsharp" }
102
102
},
103
+ findent = {
104
+ filetypes = { " fortran" }
105
+ },
103
106
fish_indent = {
104
107
filetypes = { " fish" }
105
108
},
Original file line number Diff line number Diff line change
1
+ local h = require (" null-ls.helpers" )
2
+ local methods = require (" null-ls.methods" )
3
+
4
+ local FORMATTING = methods .internal .FORMATTING
5
+
6
+ return h .make_builtin ({
7
+ name = " findent" ,
8
+ meta = {
9
+ url = " https://pypi.org/project/findent/" ,
10
+ description = " findent indents/beautifies/converts and can optionally generate the dependencies of Fortran sources." ,
11
+ },
12
+ method = FORMATTING ,
13
+ filetypes = { " fortran" },
14
+ generator_opts = {
15
+ command = " findent" ,
16
+ args = {},
17
+ to_stdin = true ,
18
+ },
19
+ factory = h .formatter_factory ,
20
+ })
You can’t perform that action at this time.
0 commit comments