mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
Sort
This commit is contained in:
parent
1d2ec9ea62
commit
6ca87e53a2
@ -8,11 +8,34 @@ if not mason_null_ls_status_ok then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
mason_null_ls.setup({
|
||||||
|
ensure_installed = {
|
||||||
|
"autopep8",
|
||||||
|
"beautysh",
|
||||||
|
"clang_format",
|
||||||
|
"codespell",
|
||||||
|
"cpplint",
|
||||||
|
"djlint",
|
||||||
|
"flake8",
|
||||||
|
"gitlint",
|
||||||
|
"html_lint",
|
||||||
|
"isort",
|
||||||
|
"luacheck",
|
||||||
|
"markdownlint",
|
||||||
|
"misspell",
|
||||||
|
"mypy",
|
||||||
|
"prettier",
|
||||||
|
"shfmt",
|
||||||
|
"yamlfmt",
|
||||||
|
},
|
||||||
|
automatic_installation = true,
|
||||||
|
automatic_setup = true,
|
||||||
|
})
|
||||||
|
|
||||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||||
local formatting = null_ls.builtins.formatting
|
local formatting = null_ls.builtins.formatting
|
||||||
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||||
local diagnostics = null_ls.builtins.diagnostics
|
local diagnostics = null_ls.builtins.diagnostics
|
||||||
|
|
||||||
-- https://github.com/prettier-solidity/prettier-plugin-solidity
|
-- https://github.com/prettier-solidity/prettier-plugin-solidity
|
||||||
null_ls.setup({
|
null_ls.setup({
|
||||||
debug = false,
|
debug = false,
|
||||||
@ -20,12 +43,18 @@ null_ls.setup({
|
|||||||
diagnostics.codespell,
|
diagnostics.codespell,
|
||||||
diagnostics.cpplint,
|
diagnostics.cpplint,
|
||||||
diagnostics.flake8,
|
diagnostics.flake8,
|
||||||
diagnostics.luacheck,
|
diagnostics.luacheck.with({
|
||||||
|
extra_args = {
|
||||||
|
"--globals",
|
||||||
|
"vim",
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
diagnostics.markdownlint,
|
||||||
diagnostics.misspell,
|
diagnostics.misspell,
|
||||||
diagnostics.mypy,
|
diagnostics.mypy,
|
||||||
diagnostics.zsh,
|
|
||||||
formatting.autopep8,
|
formatting.autopep8,
|
||||||
formatting.beautysh,
|
formatting.beautysh,
|
||||||
|
formatting.clang_format,
|
||||||
formatting.djlint,
|
formatting.djlint,
|
||||||
formatting.google_java_format,
|
formatting.google_java_format,
|
||||||
formatting.isort,
|
formatting.isort,
|
||||||
@ -42,30 +71,16 @@ null_ls.setup({
|
|||||||
"strict",
|
"strict",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
formatting.shfmt,
|
formatting.shfmt.with({
|
||||||
|
extra_filetypes = {
|
||||||
|
"bash",
|
||||||
|
"csh",
|
||||||
|
"ksh",
|
||||||
|
"sh",
|
||||||
|
"zsh",
|
||||||
|
},
|
||||||
|
}),
|
||||||
formatting.stylua,
|
formatting.stylua,
|
||||||
formatting.yamlfmt,
|
formatting.yamlfmt,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
mason_null_ls.setup({
|
|
||||||
ensure_installed = {
|
|
||||||
"autopep8",
|
|
||||||
"beautysh",
|
|
||||||
"codespell",
|
|
||||||
"cpplint",
|
|
||||||
"djlint",
|
|
||||||
"flake8",
|
|
||||||
"gitlint",
|
|
||||||
"html_lint",
|
|
||||||
"isort",
|
|
||||||
"luacheck",
|
|
||||||
"misspell",
|
|
||||||
"mypy",
|
|
||||||
"prettier",
|
|
||||||
"shfmt",
|
|
||||||
"yamlfmt",
|
|
||||||
},
|
|
||||||
automatic_installation = true,
|
|
||||||
automatic_setup = true,
|
|
||||||
})
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user