Skip to content

Commit

Permalink
fix(core): correct GUI detection post v0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesChiuGit committed Sep 10, 2024
1 parent 49684d4 commit 4683f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/modules/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ editor["mrjones2014/smart-splits.nvim"] = {
editor["nvim-treesitter/nvim-treesitter"] = {
lazy = true,
build = function()
if vim.fn.has("gui_running") == 1 then
if #vim.api.nvim_list_uis() > 0 then
vim.api.nvim_command([[TSUpdate]])
end
end,
Expand Down

0 comments on commit 4683f33

Please sign in to comment.