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