home: vim: fix lua formatting

This commit is contained in:
Bruno BELANYI 2023-05-06 18:58:30 +01:00
parent c2d231d3f1
commit 1e9f6fe957
9 changed files with 19 additions and 18 deletions

View file

@ -39,7 +39,7 @@ M.on_attach = function(client, bufnr)
-- * nothing displayed
-- * single diagnostic at the end of the line (`virtual_text`)
-- * full diagnostics using virtual text (`virtual_lines`)
local text = vim.diagnostic.config().virtual_text
local text = vim.diagnostic.config().virtual_text
local lines = vim.diagnostic.config().virtual_lines
-- Text -> Lines transition
@ -63,7 +63,7 @@ M.on_attach = function(client, bufnr)
end
local function show_buffer_diagnostics()
vim.diagnostic.open_float(nil, { scope="buffer" })
vim.diagnostic.open_float(nil, { scope = "buffer" })
end
local keys = {
@ -94,5 +94,4 @@ M.on_attach = function(client, bufnr)
wk.register(keys, { buffer = bufnr })
end
return M

View file

@ -17,7 +17,9 @@ end
---@param cmd string? command to check
---@return fun(cmd: string): boolean executable
M.is_executable_condition = function(cmd)
return function() return M.is_executable(cmd) end
return function()
return M.is_executable(cmd)
end
end
-- whether or not we are currently in an SSH connection