diff options
| author | Sebastián Zaffarano <sebas@zaffarano.com.ar> | 2022-03-08 06:24:25 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2022-03-08 20:43:20 +0100 |
| commit | d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3 (patch) | |
| tree | b5609f26955651241d768d13c6809fd582950362 /lua | |
| parent | Update README (diff) | |
| download | nvim-treesitter-d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3.tar nvim-treesitter-d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3.tar.gz nvim-treesitter-d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3.tar.bz2 nvim-treesitter-d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3.tar.lz nvim-treesitter-d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3.tar.xz nvim-treesitter-d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3.tar.zst nvim-treesitter-d3d1637c3c7b384776dfc8f4e8c34cf83eca37e3.zip | |
2612: Use gmake when available
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/shell_command_selectors.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua index b08121981..6bf45c21a 100644 --- a/lua/nvim-treesitter/shell_command_selectors.lua +++ b/lua/nvim-treesitter/shell_command_selectors.lua @@ -105,8 +105,12 @@ function M.select_compile_command(repo, cc, compile_location) }, } else + local make_path = vim.fn.exepath "make" + if vim.fn.executable "gmake" then + make_path = vim.fn.exepath "gmake" + end return { - cmd = "make", + cmd = make_path, info = "Compiling...", err = "Error during compilation", opts = { |
