From 647c81dd42d9e453288a48e28178adf7c2015a15 Mon Sep 17 00:00:00 2001 From: moonblade Date: Sun, 25 Sep 2022 21:21:45 +0200 Subject: [PATCH] fix gopls inlay hints --- lua/custom/plugins/configs/navigator.lua | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lua/custom/plugins/configs/navigator.lua b/lua/custom/plugins/configs/navigator.lua index 99cc4e9..19946bb 100644 --- a/lua/custom/plugins/configs/navigator.lua +++ b/lua/custom/plugins/configs/navigator.lua @@ -149,15 +149,17 @@ local config = { -- set global default on lspconfig (see lspconfig doc) gopls = { settings = { - hints = { - assignVariableTypes = true, - compositeLiteralFields = true, - compositeLiteralTypes = true, - constantValues = true, - functionTypeParameters = true, - parameterNames = true, - rangeVariableTypes = true, - }, + gopls = { + hints = { + assignVariableTypes = true, + compositeLiteralFields = true, + compositeLiteralTypes = true, + constantValues = true, + functionTypeParameters = true, + parameterNames = true, + rangeVariableTypes = true, + }, + } } },