From bb38aab0482e576c1e0823141d41dae335cbe8c7 Mon Sep 17 00:00:00 2001 From: newbie Date: Thu, 1 Feb 2024 14:22:05 +0800 Subject: [PATCH] update --- init.lua | 1 + lua/options.lua | 2 +- lua/plugs/nvim-lspconfig.lua | 1 - snippets/c/acm/Class_Graph.code-snippets | 32 ++++++++++++------------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/init.lua b/init.lua index 178f0b0..c141d77 100644 --- a/init.lua +++ b/init.lua @@ -26,6 +26,7 @@ G.opt.rtp:prepend(lazypath) require("keymap") + if G.g.vscode then require('vscode') else diff --git a/lua/options.lua b/lua/options.lua index ed023f0..8a2051f 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -56,7 +56,7 @@ G.au({ "InsertEnter" }, { end, }) -G.au({ "VimEnter" }, { +G.au({ "VimEnter", "BufEnter" }, { pattern = { "*.code-snippets" }, callback = function() G.cmd("setfiletype json") diff --git a/lua/plugs/nvim-lspconfig.lua b/lua/plugs/nvim-lspconfig.lua index 9ee2c85..6fd3d4f 100644 --- a/lua/plugs/nvim-lspconfig.lua +++ b/lua/plugs/nvim-lspconfig.lua @@ -15,7 +15,6 @@ return { require 'lspconfig'.yamlls.setup(require('lsp.yaml')) require 'lspconfig'.gopls.setup(require('lsp.go')) require 'lspconfig'.jsonls.setup(require('lsp.json')) - require 'lspconfig'.javals.setup() G.map({ diff --git a/snippets/c/acm/Class_Graph.code-snippets b/snippets/c/acm/Class_Graph.code-snippets index 8d9685c..cfa9bb2 100644 --- a/snippets/c/acm/Class_Graph.code-snippets +++ b/snippets/c/acm/Class_Graph.code-snippets @@ -41,8 +41,8 @@ "#define head g.head", "#define maps g.maps", "#define add g.add", - "", - ], + "" + ] }, "Class_Graph_Dijkstra": { "prefix": "Class_Graph_Dijkstra", @@ -74,8 +74,8 @@ " else", " return -1;", "}", - "", - ], + "" + ] }, "Class_Graph_SPFA": { "prefix": "Class_Graph_SPFA", @@ -103,8 +103,8 @@ " if(dis[en] == inf) return -1;", " return dis[en];", "}", - "", - ], + "" + ] }, "Class_Graph_Kurskal": { "prefix": "Class_Graph_Kurskal", @@ -121,8 +121,8 @@ " }", " return res;", "}", - "", - ], + "" + ] }, "Class_Graph_Prim": { "prefix": "Class_Graph_Prim", @@ -166,7 +166,7 @@ " ans = max(ans, max(up[i], dis1[i]));", " }", " return ans;", - "}", + "}" ] }, "Class_Graph_SCC": { @@ -218,8 +218,8 @@ " return;", " }", "};", - "", - ], + "" + ] }, "Class_Graph_Euler": { "prefix": "Class_Graph_Euler", @@ -270,7 +270,7 @@ "", "};", "#define path eu.path", - "", + "" ] }, "Class_Graph_LCA": { @@ -318,8 +318,8 @@ " return fa[0][a];", " }", "};", - "", - ], + "" + ] }, "Class_Graph_erfen": { "prefix": "Class_Graph_erfen", @@ -353,7 +353,7 @@ " return false;", " }", "};", - "", + "" ] } -} \ No newline at end of file +}