1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 19:30:01 +02:00

touched the nvim, alot.

This commit is contained in:
Henrik Hautakoski 2024-03-24 17:44:01 +01:00
parent 4c1b128c96
commit 13e4207ef5
28 changed files with 288 additions and 145 deletions

View file

@ -0,0 +1,18 @@
return {
keys = {
{ '<leader>ff', "<cmd>Format<cr>", desc = 'Format file' },
{ '<leader>ff', "<cmd>Format<cr>", mode = 'x', desc = 'Format selection' },
},
opts = {
format_options = {
async = true,
lsp_fallback = true,
},
notify_on_error = true,
formatters_by_ft = {
blade = { "blade-formatter" },
lua = { "stylua" },
["_"] = { "prettier" }
}
}
}