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:
@@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user