master #1

Open
oli wants to merge 912 commits from master into lua
Showing only changes of commit a85b634110 - Show all commits

View File

@@ -70,7 +70,11 @@ local on_attach = function(client, bufnr)
end
end
if client.server_capabilities.documentRangeFormattingProvider then
vim.keymap.set('v', '<space>f', vim.lsp.buf.range_formatting, opts)
if vim.version().minor >= 8 then
vim.keymap.set('v', '<space>f', vim.lsp.buf.format, opts)
else
vim.keymap.set('v', '<space>f', vim.lsp.buf.range_formatting, opts)
end
end
-- Set autocommands conditional on server_capabilities