From 18d5f5896bd68191cf624020af017d9b058ac403 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sun, 27 Apr 2025 22:07:33 +0100 Subject: [PATCH] Add gopls language server --- lua/plugins/completions.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/plugins/completions.lua b/lua/plugins/completions.lua index 4235722..0b8a1ed 100644 --- a/lua/plugins/completions.lua +++ b/lua/plugins/completions.lua @@ -33,6 +33,15 @@ if vim.fn.executable('pip') == 1 then end end +if vim.fn.executable('go') then + local ensure_installed_from_go = { + 'gopls', -- Go + } + for _, package in ipairs(ensure_installed_from_go) do + table.insert(ensure_installed, package) + end +end + if vim.fn.has('win32') == 1 then table.insert(ensure_installed, 'powershell_es') end