mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nvim: run stylua
This commit is contained in:
parent
547ae11f4d
commit
94ab5d51f1
3 changed files with 11 additions and 13 deletions
|
|
@ -1,6 +1,5 @@
|
|||
|
||||
vim.keymap.set("n", "<leader>f", function()
|
||||
local saved = vim.fn.winsaveview()
|
||||
vim.cmd([[silent exec "!stylua %"]])
|
||||
vim.fn.winrestview(saved)
|
||||
end, { desc = "ft(lua): Format with stylua" })
|
||||
vim.keymap.set("n", "<leader>f", function()
|
||||
local saved = vim.fn.winsaveview()
|
||||
vim.cmd([[silent exec "!stylua %"]])
|
||||
vim.fn.winrestview(saved)
|
||||
end, { desc = "ft(lua): Format with stylua" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue