summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/shell_command_selectors.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-10-31 10:52:52 +0000
committerChristian Clason <christian.clason@uni-due.de>2022-10-31 12:00:45 +0100
commit0948bf22745f1d80572e2b46ed547c7c8674cca9 (patch)
tree6bd8d49b094b36a61e9a38b1f1b2d04004330ca4 /lua/nvim-treesitter/shell_command_selectors.lua
parent4392211d77a11f3f4806c963ff904506cb649a1f (diff)
feat(emmy): add emmylua annotations
Diffstat (limited to 'lua/nvim-treesitter/shell_command_selectors.lua')
-rw-r--r--lua/nvim-treesitter/shell_command_selectors.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/shell_command_selectors.lua b/lua/nvim-treesitter/shell_command_selectors.lua
index 522ac727..59bbb0e4 100644
--- a/lua/nvim-treesitter/shell_command_selectors.lua
+++ b/lua/nvim-treesitter/shell_command_selectors.lua
@@ -49,6 +49,7 @@ function M.select_rm_file_cmd(file, info_msg)
end
end
+---@return string|nil
function M.select_executable(executables)
return vim.tbl_filter(function(c)
return c ~= vim.NIL and fn.executable(c) == 1