hook global WinSetOption filetype=lua %{
    set-option buffer lsp_servers %{
       [lua-language-server]
       root_globs = [".luarc.json", ".git", ".hg"]
       command = "/home/ANT.AMAZON.COM/dugajame/lua-language-server/bin/lua-language-server"
       # [emmylua_ls]
       # root_globs = [".luarc.json", ".git", ".hg"]
       # command = "emmylua_ls"
    }
    lsp-semantic-tokens-enable
    softtab-enable
    lsp-enable-buffer
}

hook global ModuleLoaded lua %{
    # Support highlighting shebangs
    add-highlighter shared/lua/shebang region '^#!' '$' fill comment
}
