1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-11-29 17:19:44 +01:00

nvim: added stylua with custom config

This commit is contained in:
2024-03-05 19:46:26 +01:00
parent abed395a87
commit 7931d193b6
3 changed files with 23 additions and 9 deletions

View File

@@ -8,13 +8,15 @@ return {
config = function()
require("null-ls").setup({
sources = {
-- python
require("null-ls").builtins.formatting.isort,
require("null-ls").builtins.formatting.black,
-- markdown
require("null-ls").builtins.formatting.mdformat,
-- latex
require("null-ls").builtins.formatting.latexindent,
-- lua
require("null-ls").builtins.formatting.stylua,
-- markdown
require("null-ls").builtins.formatting.mdformat,
-- python
require("null-ls").builtins.formatting.black,
require("null-ls").builtins.formatting.isort,
}
})
end
@@ -28,6 +30,7 @@ return {
"isort",
"latexindent",
"mdformat",
"stylua",
}
}
}