From 5f5439d7935633b08d6b0b1090d20e98493145d3 Mon Sep 17 00:00:00 2001 From: pegasust Date: Fri, 21 Jul 2023 00:56:04 -0700 Subject: [PATCH] forgorr to invoke lspconfig --- native_configs/neovim/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/native_configs/neovim/init.lua b/native_configs/neovim/init.lua index eab539b..f04cdc8 100644 --- a/native_configs/neovim/init.lua +++ b/native_configs/neovim/init.lua @@ -961,8 +961,8 @@ local setup = { local util = require 'lspconfig.util' local mod_cache = nil - return { - default_config = { + require('lspconfig').gopls.setup { + { -- NOTE: might just change to `nix run nixpkgs#gopls` for simplicity here cmd = { 'gopls' }, filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' }, @@ -993,7 +993,7 @@ Google's lsp server for golang. default_config = { root_dir = [[root_pattern("go.work", "go.mod", ".git")]], }, - }, + } } end }