From df338cfc026a6fa5cf7559b35519ecc4426dc566 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 29 Oct 2023 01:26:26 +0700 Subject: [PATCH] chore(nvim): improve gopls --- data/nvim/init.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 8e3669e..7db513f 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -424,10 +424,17 @@ require("lazy").setup({ settings = { gopls = { gofumpt = true, - codelenses = { - gc_details = true, - }, semanticTokens = true, + usePlaceholders = true, + analyses = { + deprecated = false, + fieldalignment = true, + nilness = true, + unusedparams = true, + unusedwrite = true, + useany = true, + unusedvariable = true, + }, }, }, })