Skip to content

Commit

Permalink
🐞 fix(editor.lua): fixed TSUpdate issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
vkingw committed Dec 19, 2024
1 parent 8f06e2e commit 7131ef6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lua/modules/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ editor["nvim-pack/nvim-spectre"] = {
----------------------------------------------------------------------
editor["nvim-treesitter/nvim-treesitter"] = {
lazy = true,
build = function()
if #vim.api.nvim_list_uis() > 0 then
vim.api.nvim_command([[TSUpdate]])
end
end,
build = ":TSUpdate", -- 改用字符串形式而不是函数
event = "BufReadPre",
config = require("editor.treesitter"),
dependencies = {
Expand Down

0 comments on commit 7131ef6

Please sign in to comment.