From a097fa4c04e6db34bb409e0dea302c20629da8ec Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Tue, 13 Jul 2021 21:13:55 -0400 Subject: LunarVim 0.4.8 (#919) --- ftplugin/go.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ftplugin/go.lua') diff --git a/ftplugin/go.lua b/ftplugin/go.lua index fbad5a2b..47de932f 100644 --- a/ftplugin/go.lua +++ b/ftplugin/go.lua @@ -1,3 +1,18 @@ +O.formatters.filetype["go"] = { + function() + return { + exe = O.lang.go.formatter.exe, + args = O.lang.go.formatter.args, + stdin = not (O.lang.go.formatter.stdin ~= nil), + } + end, +} + +require("formatter.config").set_defaults { + logging = false, + filetype = O.formatters.filetype, +} + if not require("lv-utils").check_lsp_client_active "gopls" then require("lspconfig").gopls.setup { cmd = { DATA_PATH .. "/lspinstall/go/gopls" }, -- cgit v1.2.3