From 687fcb939b7de052a3ba6c300348fcd5eb128e83 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sun, 1 Dec 2024 15:41:11 +0100 Subject: refactor: remove outdated code Lspconfig requires neovim version 0.9 at the time of writing this, so discard any version checks and code for older versions. --- lua/lspconfig/configs/gdscript.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lua/lspconfig/configs/gdscript.lua') diff --git a/lua/lspconfig/configs/gdscript.lua b/lua/lspconfig/configs/gdscript.lua index 20305333..e0c9ba10 100644 --- a/lua/lspconfig/configs/gdscript.lua +++ b/lua/lspconfig/configs/gdscript.lua @@ -1,11 +1,7 @@ local util = require 'lspconfig.util' local port = os.getenv 'GDScript_Port' or '6005' -local cmd = { 'nc', 'localhost', port } - -if vim.fn.has 'nvim-0.8' == 1 then - cmd = vim.lsp.rpc.connect('127.0.0.1', port) -end +local cmd = vim.lsp.rpc.connect('127.0.0.1', tonumber(port)) return { default_config = { -- cgit v1.2.3-70-g09d2