mirror of
https://github.com/zoriya/dotfiles.git
synced 2026-05-31 18:25:08 +00:00
Adding range formating binding
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -4,7 +4,8 @@ local options = {
|
||||
shiftwidth = 4,
|
||||
tabstop = 4,
|
||||
cinoptions = {
|
||||
"(1s"
|
||||
"(1s",
|
||||
"m1",
|
||||
},
|
||||
|
||||
hlsearch = true,
|
||||
|
||||
Reference in New Issue
Block a user