mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
2612: Use gmake when available
This commit is contained in:
parent
2ff68da179
commit
d3d1637c3c
1 changed files with 5 additions and 1 deletions
|
|
@ -105,8 +105,12 @@ function M.select_compile_command(repo, cc, compile_location)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
local make_path = vim.fn.exepath "make"
|
||||||
|
if vim.fn.executable "gmake" then
|
||||||
|
make_path = vim.fn.exepath "gmake"
|
||||||
|
end
|
||||||
return {
|
return {
|
||||||
cmd = "make",
|
cmd = make_path,
|
||||||
info = "Compiling...",
|
info = "Compiling...",
|
||||||
err = "Error during compilation",
|
err = "Error during compilation",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue