aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 17cbb78cb..7b4875135 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -50,7 +50,7 @@ function M.select_rm_file_cmd(file, info_msg)
end
function M.select_executable(executables)
- return vim.tbl_filter(function(c) return fn.executable(c) == 1 end, executables)[1]
+ return vim.tbl_filter(function(c) return c ~= vim.NIL and fn.executable(c) == 1 end, executables)[1]
end
function M.select_compiler_args(repo)