mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-17 23:37:47 +02:00
Compare commits
2 Commits
f789c139cb
...
7931d193b6
Author | SHA1 | Date | |
---|---|---|---|
7931d193b6 | |||
abed395a87 |
@ -1,4 +1,5 @@
|
||||
Bonitur
|
||||
Königinnensubstanz
|
||||
Magazinbeute
|
||||
Magazinbeuten
|
||||
Pollenhose
|
||||
|
@ -1,12 +1,19 @@
|
||||
return {
|
||||
-- improved refactoring
|
||||
{
|
||||
'stevearc/conform.nvim',
|
||||
opts = {
|
||||
"stevearc/conform.nvim",
|
||||
config = function()
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
python = { "isort", "black" },
|
||||
markdown = { "mdformat" },
|
||||
tex = { "latexindent" },
|
||||
lua = { "stylua" },
|
||||
},
|
||||
})
|
||||
require("conform").formatters.latexindent = {
|
||||
prepend_args = { "-y=defaultIndent: ' '" },
|
||||
}
|
||||
}
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
@ -8,11 +8,15 @@ return {
|
||||
config = function()
|
||||
require("null-ls").setup({
|
||||
sources = {
|
||||
-- python
|
||||
require("null-ls").builtins.formatting.isort,
|
||||
require("null-ls").builtins.formatting.black,
|
||||
-- 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
|
||||
@ -22,7 +26,11 @@ return {
|
||||
opts = {
|
||||
automatic_installation = true,
|
||||
ensure_installed = {
|
||||
"isort", "black", "mdformat"
|
||||
"black",
|
||||
"isort",
|
||||
"latexindent",
|
||||
"mdformat",
|
||||
"stylua",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
10
.config/stylua/stylua.toml
Normal file
10
.config/stylua/stylua.toml
Normal file
@ -0,0 +1,10 @@
|
||||
column_width = 100
|
||||
line_endings = "Unix"
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
quote_style = "AutoPreferDouble"
|
||||
call_parentheses = "Always"
|
||||
collapse_simple_statement = "Never"
|
||||
|
||||
[sort_requires]
|
||||
enabled = true
|
Loading…
x
Reference in New Issue
Block a user