nvim: add stylua
This commit is contained in:
parent
592b8e4b09
commit
f6fe8df934
1 changed files with 13 additions and 9 deletions
|
@ -9,15 +9,10 @@ function M.config()
|
||||||
|
|
||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
sources = {
|
sources = {
|
||||||
builtins.formatting.black,
|
|
||||||
builtins.formatting.buf,
|
|
||||||
builtins.formatting.cue_fmt,
|
|
||||||
builtins.formatting.shfmt,
|
|
||||||
builtins.formatting.sqlfluff,
|
|
||||||
builtins.formatting.buildifier,
|
|
||||||
builtins.formatting.prettierd,
|
|
||||||
builtins.completion.spell,
|
|
||||||
builtins.code_actions.eslint_d,
|
builtins.code_actions.eslint_d,
|
||||||
|
|
||||||
|
builtins.completion.spell,
|
||||||
|
|
||||||
builtins.diagnostics.buf.with({
|
builtins.diagnostics.buf.with({
|
||||||
args = { "lint", "--disable-symlinks", "--path", "$FILENAME" },
|
args = { "lint", "--disable-symlinks", "--path", "$FILENAME" },
|
||||||
cwd = function()
|
cwd = function()
|
||||||
|
@ -30,8 +25,17 @@ function M.config()
|
||||||
}),
|
}),
|
||||||
builtins.diagnostics.buildifier,
|
builtins.diagnostics.buildifier,
|
||||||
builtins.diagnostics.cue_fmt,
|
builtins.diagnostics.cue_fmt,
|
||||||
builtins.diagnostics.golangci_lint,
|
|
||||||
builtins.diagnostics.eslint_d,
|
builtins.diagnostics.eslint_d,
|
||||||
|
builtins.diagnostics.golangci_lint,
|
||||||
|
|
||||||
|
builtins.formatting.black,
|
||||||
|
builtins.formatting.buf,
|
||||||
|
builtins.formatting.buildifier,
|
||||||
|
builtins.formatting.cue_fmt,
|
||||||
|
builtins.formatting.prettierd,
|
||||||
|
builtins.formatting.shfmt,
|
||||||
|
builtins.formatting.sqlfluff,
|
||||||
|
builtins.formatting.stylua,
|
||||||
},
|
},
|
||||||
debug = true,
|
debug = true,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue