mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-03 09:59:25 +00:00
[neovim] Use conform plugin for auto formatting
This commit is contained in:
@ -125,12 +125,9 @@ keymap(
|
||||
"<cmd>Lspsaga peek_definition<cr>",
|
||||
vim.tbl_extend("force", opts, { desc = "Peek the definition of the directive under the cursor" })
|
||||
)
|
||||
keymap(
|
||||
{ "n", "v" },
|
||||
"<leader>lf",
|
||||
"<cmd>lua vim.lsp.buf.format{ async=true }<cr>",
|
||||
vim.tbl_extend("force", opts, { desc = "Format the current buffer or selection" })
|
||||
)
|
||||
keymap({ "n", "v" }, "<leader>lf", function()
|
||||
require("conform").format({ async = true, lsp_fallback = true })
|
||||
end, vim.tbl_extend("force", opts, { desc = "Format the current buffer or selection" }))
|
||||
|
||||
-- Neotest
|
||||
keymap(
|
||||
|
Reference in New Issue
Block a user