From 04d2ed31d8bef9244023254b6f0e4ffed107d03f Mon Sep 17 00:00:00 2001 From: newbie Date: Sun, 28 Jan 2024 16:12:42 +0800 Subject: [PATCH] update --- lua/plugs/nvim-lspconfig.lua | 14 +++++++------- snippets/go.json | 8 ++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index 315fe12..38ecbbf 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -238,13 +238,13 @@ return { config = function() local treesitter_opt = { ensure_installed = { - "c", - "cpp", - "python", - "java", - "lua", - "bash", - "vimdoc", + -- "c", + -- "cpp", + -- "python", + -- "java", + -- "lua", + -- "bash", + -- "vimdoc", }, indent = { enable = true }, ignore_install = { diff --git a/snippets/go.json b/snippets/go.json index 9b35bff..36d096c 100644 --- a/snippets/go.json +++ b/snippets/go.json @@ -10,5 +10,13 @@ " $1", "}" ] + }, + "init": { + "prefix": "init", + "body": [ + "func init() {", + " $1", + "}" + ] } }