From 900fc9bfbe680e444244f1b441fc722bd1b8a8da Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 11 Sep 2023 17:28:40 -0500 Subject: [PATCH] feat(nvim): add go language server --- dots/.config/nvim/lua/plugins/configs/lsp.lua | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/lsp.lua b/dots/.config/nvim/lua/plugins/configs/lsp.lua index e2f2b11f..4ba5028d 100644 --- a/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -440,6 +440,8 @@ return { }) lspconfig.texlab.setup({ + capabilities = lsp_capabilities, + on_attach = on_attach, settings = { texlab = { build = { @@ -482,6 +484,25 @@ return { }, }) + lspconfig.gopls.setup({ + capabilities = lsp_capabilities, + on_attach = on_attach, + settings = { + gopls = { + hints = { + assignVariableTypes = true, + compositeLiteralFields = true, + compositeLiteralTypes = true, + constantValues = true, + functionTypeParameters = true, + parameterNames = true, + rangeVariableTypes = true, + } + } + } + } + ) + -- NOTE: GENERIC LSP SERVERS for _, server in ipairs({ "clangd",