mirror of
https://github.com/softinio/nvim-config.git
synced 2025-09-05 09:06:42 -07:00
removed obisidian and added conform and todo comments
This commit is contained in:
parent
a58443e9e5
commit
f6da4d1530
3 changed files with 36 additions and 27 deletions
24
lua/plugins/conform.lua
Normal file
24
lua/plugins/conform.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
"stevearc/conform.nvim",
|
||||
config = function()
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
python = function(bufnr)
|
||||
if require("conform").get_formatter_info("ruff_format", bufnr).available then
|
||||
return { "ruff_fix", "ruff_format" }
|
||||
else
|
||||
return { "isort", "black", "flake8" }
|
||||
end
|
||||
end,
|
||||
scala = { "scalafmt" },
|
||||
swift = { "swift_format" },
|
||||
["*"] = { "trim_whitespace", "trim_newlines" },
|
||||
},
|
||||
format_on_save = {
|
||||
timeout_ms = 500,
|
||||
lsp_fallback = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue