home: vim: lua: util: fix comments

This commit is contained in:
Bruno BELANYI 2023-09-14 11:13:27 +00:00
parent 550436eee5
commit 3f7a062376

View file

@ -1,7 +1,7 @@
local M = {}
-- pretty print lua object
-- @param obj any object to pretty print
--- pretty print lua object
--- @param obj any object to pretty print
M.dump = function(obj)
print(vim.inspect(obj))
end
@ -22,8 +22,8 @@ M.is_executable_condition = function(cmd)
end
end
-- whether or not we are currently in an SSH connection
-- @return boolean ssh connection
--- whether or not we are currently in an SSH connection
--- @return boolean ssh connection
M.is_ssh = function()
local variables = {
"SSH_CONNECTION",
@ -40,9 +40,9 @@ M.is_ssh = function()
return false
end
-- list all active LSP clients for current buffer
-- @param bufnr int? buffer number
-- @return table all active LSP client names
--- list all active LSP clients for current buffer
--- @param bufnr int? buffer number
--- @return table all active LSP client names
M.list_lsp_clients = function(bufnr)
local clients = vim.lsp.buf_get_clients(bufnr)
local names = {}