From a04754be051f70565874b6935752a5a6c9404604 Mon Sep 17 00:00:00 2001 From: Daiki Noda Date: Sun, 26 Nov 2023 22:42:59 +0900 Subject: [PATCH] perf: reduce an unnecessary function call --- plugin/lspconfig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index 1a731eb11e..f76d5c89f9 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -5,8 +5,8 @@ if vim.g.lspconfig ~= nil then end vim.g.lspconfig = 1 -local version_info = vim.version() if vim.fn.has 'nvim-0.7' ~= 1 then + local version_info = vim.version() local warning_str = string.format( '[lspconfig] requires neovim 0.7 or later. Detected neovim version: 0.%s.%s', version_info.minor,