nvim/lsp: move out non-lsp formatting bindings

This commit is contained in:
Primrose 2025-07-09 10:30:50 +02:00
parent a644f3c688
commit ce5e5610e1
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 19 additions and 26 deletions

View file

@ -0,0 +1,5 @@
vim.keymap.set("n", "<leader>f", function()
local saved = vim.fn.winsaveview()
vim.cmd([[silent exec "%!shfmt"]])
vim.fn.winrestview(saved)
end, { desc = "ft(bash): Format with shfmt" })