mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-07 07:17:35 +00:00
Fix range formatting
This commit is contained in:
parent
aa9c37859f
commit
84497d7009
@ -44,7 +44,7 @@ local function default_attach(client, bufnr)
|
||||
augroup END
|
||||
]])
|
||||
elseif client.resolved_capabilities.document_range_formatting then
|
||||
buf_set_keymap("n", "<leader>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
||||
buf_set_keymap("n", "<leader>f", "<cmd>lua vim.lsp.buf.range_formatting()<CR>", opts)
|
||||
end
|
||||
|
||||
-- Set autocommands conditional on server_capabilities
|
||||
|
Loading…
Reference in New Issue
Block a user