From e6d0b2d1f6051936985c18ec0401a3747a285009 Mon Sep 17 00:00:00 2001 From: newbie Date: Tue, 16 Jan 2024 20:05:57 +0800 Subject: [PATCH] update --- lua/plugs.lua | 29 ++++++++++++++++++++++++----- snippets/go.json | 12 +++++------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/lua/plugs.lua b/lua/plugs.lua index f91cfc9..416bd00 100644 --- a/lua/plugs.lua +++ b/lua/plugs.lua @@ -1,12 +1,31 @@ - return { - 'vijaymarupudi/nvim-fzf', -- fzf - 'lilydjwg/colorizer', -- 颜色识别 + 'vijaymarupudi/nvim-fzf', -- fzf + 'lilydjwg/colorizer', -- 颜色识别 + { + "kawre/leetcode.nvim", + build = ":TSUpdate html", + dependencies = { + "nvim-telescope/telescope.nvim", + "nvim-lua/plenary.nvim", -- telescope 所需 + "MunifTanjim/nui.nvim", + + -- 可选 + "nvim-treesitter/nvim-treesitter", + "rcarriga/nvim-notify", + "nvim-tree/nvim-web-devicons", + }, + opts = { + -- 配置放在这里 + cn = { + enabled = true, + }, + }, + }, require('plugs.nvim-lspconfig'), - require('plugs.nvimtree'), -- nvimtree - require('plugs.theme'), -- theme + require('plugs.nvimtree'), -- nvimtree + require('plugs.theme'), -- theme require("plugs.edit-plugs"), diff --git a/snippets/go.json b/snippets/go.json index 6aaf995..095ae93 100644 --- a/snippets/go.json +++ b/snippets/go.json @@ -1,14 +1,12 @@ { "class": { - "prefix": "Class_Array_tree", + "prefix": "class", "body": [ "type $1 struct {", - "id int64", - "$1Id int64", - "$1Name string", - "createTime time.Time", - "updateTime time.Time", - "$2", + " id int64", + " $2", + " createTime time.Time \/\/ 创建时间", + " updateTime time.Time \/\/ 更新时间", "}", "$0" ]