Checking wrong version number
This commit is contained in:
parent
05725c6cef
commit
13d1e7f9b9
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue