From a37c97545f23eef90f833be634ef1f3db93af0ca Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Thu, 9 Sep 2021 22:11:07 +0200 Subject: Allow compilation via makefile --- lua/nvim-treesitter/install.lua | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lua/nvim-treesitter/install.lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 4b187f74..b1614395 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -325,15 +325,7 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync, }) end vim.list_extend(command_list, { - { - cmd = cc, - info = "Compiling...", - err = "Error during compilation", - opts = { - args = vim.tbl_flatten(shell.select_compiler_args(repo, cc)), - cwd = compile_location, - }, - }, + shell.select_compile_command(repo, cc, compile_location), shell.select_mv_cmd("parser.so", parser_lib_name, compile_location), { cmd = function() -- cgit v1.2.3