Adding range formating binding

This commit is contained in:
Zoe Roux
2022-04-08 00:21:34 +02:00
parent 51659bf657
commit 73828597de
2 changed files with 8 additions and 1 deletions
@@ -59,6 +59,12 @@ local lsp_keymaps = function(bufnr)
}, {
buffer = bufnr,
})
wk.register({
["<leader>f"] = { "<cmd>lua vim.lsp.buf.range_format()<CR>", "Range format" },
}, {
buffer = bufnr,
mode = "v",
})
end
M.on_attach = function(client, bufnr)
+2 -1
View File
@@ -4,7 +4,8 @@ local options = {
shiftwidth = 4,
tabstop = 4,
cinoptions = {
"(1s"
"(1s",
"m1",
},
hlsearch = true,