fixed format mode
This commit is contained in:
parent
d0c31ea3b7
commit
7629d6d57e
@ -66,7 +66,7 @@ local on_attach = function(client, bufnr)
|
|||||||
vim.keymap.set('n', '<space>f', vim.lsp.buf.format, opts)
|
vim.keymap.set('n', '<space>f', vim.lsp.buf.format, opts)
|
||||||
end
|
end
|
||||||
if client.server_capabilities.documentRangeFormattingProvider then
|
if client.server_capabilities.documentRangeFormattingProvider then
|
||||||
vim.keymap.set('v', '<space>f', vim.lsp.buf.range_formatting, opts)
|
vim.keymap.set('x', '<space>f', vim.lsp.buf.format, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Set autocommands conditional on server_capabilities
|
-- Set autocommands conditional on server_capabilities
|
||||||
|
Loading…
x
Reference in New Issue
Block a user