diff options
author | dundargoc <gocdundar@gmail.com> | 2024-05-25 20:35:37 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-05-27 20:48:46 +0200 |
commit | 6e8a728e3dad747d0c46dc47a530b76e8997bc08 (patch) | |
tree | 694dfdf6f734aed15c4944f8b0e8733abde802e4 /runtime/lua/vim/health/health.lua | |
parent | f70af5c3cad098ee9c7f1956bc18991cbd515507 (diff) | |
download | rneovim-6e8a728e3dad747d0c46dc47a530b76e8997bc08.tar.gz rneovim-6e8a728e3dad747d0c46dc47a530b76e8997bc08.tar.bz2 rneovim-6e8a728e3dad747d0c46dc47a530b76e8997bc08.zip |
refactor: fix luals type warnings
Diffstat (limited to 'runtime/lua/vim/health/health.lua')
-rw-r--r-- | runtime/lua/vim/health/health.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/health/health.lua b/runtime/lua/vim/health/health.lua index 5bc03199ee..235dacb82a 100644 --- a/runtime/lua/vim/health/health.lua +++ b/runtime/lua/vim/health/health.lua @@ -239,6 +239,7 @@ local function check_tmux() return end + ---@param option string local get_tmux_option = function(option) local cmd = 'tmux show-option -qvg ' .. option -- try global scope local out = vim.fn.system(vim.fn.split(cmd)) @@ -378,7 +379,7 @@ local function check_terminal() 'SSH_TTY', }) do if vim.env[env_var] then - health.info(vim.fn.printf('$%s="%s"', env_var, vim.env[env_var])) + health.info(string.format('$%s="%s"', env_var, vim.env[env_var])) end end end |