From 13d1e7f9b962a14b804185affddb2d8af8e46685 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 7 Nov 2022 16:15:46 +0000 Subject: [PATCH] Checking wrong version number --- lua/config_lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/config_lsp.lua b/lua/config_lsp.lua index 2d66d069..efed5aea 100644 --- a/lua/config_lsp.lua +++ b/lua/config_lsp.lua @@ -30,7 +30,7 @@ local on_attach = function(client, bufnr) vim.keymap.set('n', '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', 'i', function () vim.lsp.buf.formatting_sync({timeout_ms=10000}) end, bufopts)