Wednesday, May 18, 2022

Lua vim indentation

Hi, 

DON'T HAPPENING to get correct vim lua indentation, is someone can help me ? 

function trace(t) -- {{{

    setmetatable(t,{__index={s="", f=true}})
    local s, f =
    t[1] or t.s,
    t[2] or t.f -- force

    if dbgmode then
        if f then
            print ( os.date('%Y-%m-%d %H-%M-%S: ') .. s )
        end
    end
end -- }}}

-

Thank you. 

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/058ea44e-9f48-4361-9743-0f133601cae3n%40googlegroups.com.

No comments: