diff --git a/lua/modules/plugins/editor.lua b/lua/modules/plugins/editor.lua index c2b1f1f..a15215b 100644 --- a/lua/modules/plugins/editor.lua +++ b/lua/modules/plugins/editor.lua @@ -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,