From 5ea748aab52d6b38e1d649b2e390a1f1d32b0205 Mon Sep 17 00:00:00 2001 From: Steven Sojka Date: Fri, 19 Jun 2020 11:09:49 -0500 Subject: [PATCH] fix(install): remove .gitignore from parser directory --- .gitignore | 1 + lua/nvim-treesitter/install.lua | 6 ++++++ parser/.gitignore | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitignore delete mode 100644 parser/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..598d9f63f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +parser/*.so diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 637f1dedb..effa4a74f 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -29,6 +29,12 @@ local function run_install(cache_folder, package_path, ft, repo) local compile_location = cache_folder..'/'..(repo.location or project_name) local parser_lib_name = package_path.."/parser/"..ft..".so" local command_list = { + { + cmd = 'mkdir', + opts = { + args = { '-p', package_path.."/parser" } + } + }, { cmd = 'rm', opts = { diff --git a/parser/.gitignore b/parser/.gitignore deleted file mode 100644 index d6b7ef32c..000000000 --- a/parser/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore