Checking wrong version number

This commit is contained in:
Evie Litherland-Smith 2022-11-07 16:15:46 +00:00
parent 05725c6cef
commit 13d1e7f9b9

View file

@ -30,7 +30,7 @@ local on_attach = function(client, bufnr)
vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, bufopts)
vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts)
-- Keep support for deprecated syntax in vim <= 7
if vim.version().major <= 7 then
if vim.version().minor <= 7 then
vim.keymap.set('n', '<leader>i', function ()
vim.lsp.buf.formatting_sync({timeout_ms=10000})
end, bufopts)