add other format command with just nvim
This commit is contained in:
parent
10f2d2c76e
commit
e7dccf3053
|
@ -421,6 +421,15 @@ M.edit = {
|
||||||
"format buffer",
|
"format buffer",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- format with nvim
|
||||||
|
["<leader>fF"] = {
|
||||||
|
function()
|
||||||
|
vim.lsp.buf.format()
|
||||||
|
-- require("conform").format()
|
||||||
|
end,
|
||||||
|
"format buffer (no plugin)",
|
||||||
|
},
|
||||||
|
|
||||||
-- remove trailing whitespace
|
-- remove trailing whitespace
|
||||||
["<leader>fw"] = {
|
["<leader>fw"] = {
|
||||||
function()
|
function()
|
||||||
|
|
Loading…
Reference in New Issue