Dotfiles with the latest changes

This commit is contained in:
2024-10-28 14:02:46 +01:00
parent d39336c479
commit fa6b78a382
108 changed files with 4459 additions and 467 deletions

View File

@@ -0,0 +1,21 @@
return {
"stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function()
local conform = require("conform")
local wk = require("which-key")
conform.setup({
formatters_by_ft = {
markdown = { "prettier" },
python = { "black" },
lua = { "stylua" },
},
})
wk.add({
{ "<leader>l" , group = "lsp", icon = ""},
{"<leader>lf", function() conform.format({lsp_fallback = true, async = false, timeout_ms = 1000}) end, desc = "Format file", icon = "󰛖"},
})
end,
}