From a97cbc370ecdcb068ec675d9f6c13f9166cf2219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Thu, 4 Jan 2024 14:36:52 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20event=20ch?= =?UTF-8?q?ange=20for=20go=20extra=20and=20some=20style=20modifications=20?= =?UTF-8?q?for=20.json=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/extras/lang/go-extended.lua | 2 +- .config/nvim/snippets/package.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/lang/go-extended.lua b/.config/nvim/lua/plugins/extras/lang/go-extended.lua index dfb49288..042b2735 100644 --- a/.config/nvim/lua/plugins/extras/lang/go-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/go-extended.lua @@ -8,7 +8,7 @@ return { "nvim-treesitter/nvim-treesitter", }, opts = {}, - event = { "CmdlineEnter" }, + event = { "LazyFile" }, ft = { "go", "gomod" }, build = ':lua require("go.install").update_all_sync()', }, diff --git a/.config/nvim/snippets/package.json b/.config/nvim/snippets/package.json index df42b0d4..f6a37ddb 100644 --- a/.config/nvim/snippets/package.json +++ b/.config/nvim/snippets/package.json @@ -18,9 +18,7 @@ "path": "./languages/global.json" }, { - "language": [ - "markdown" - ], + "language": "markdown", "path": "./languages/markdown.json" }, {