From 6b42c103ea47b4759e69a286d3762b298e25d02a Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Mon, 5 May 2025 21:49:27 +0800 Subject: [PATCH] =?UTF-8?q?nvim:=20=E5=85=88=E5=8A=A0=E5=85=A5nvim-treesit?= =?UTF-8?q?ter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exact_plugins/exact_editor/syntax.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dot_config/nvim/exact_lua/exact_plugins/exact_editor/syntax.lua diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_editor/syntax.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_editor/syntax.lua new file mode 100644 index 0000000..445380b --- /dev/null +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_editor/syntax.lua @@ -0,0 +1,14 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function() + require("nvim-treesitter.configs").setup({ + ensure_installed = { "regex" }, -- 確保安裝 regex 支援 + highlight = { + enable = true, -- 啟用高亮 + }, + }) + end, + } +}