소스 검색

fix: use :TSInstall on build with nvim-treesitter (#261)

Sebastian Lyng Johansen 3 년 전
부모
커밋
9451e1db71
1개의 변경된 파일과 1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      init.lua

+ 1 - 3
init.lua

@@ -167,9 +167,7 @@ require('lazy').setup({
     dependencies = {
       'nvim-treesitter/nvim-treesitter-textobjects',
     },
-    config = function()
-      pcall(require('nvim-treesitter.install').update { with_sync = true })
-    end,
+    build = ":TSUpdate",
   },
 
   -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart