Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Teamtype-Hedgedoc bridge prototype

To build:

cargo build -r --bin ethersync-hedgedoc

Configuration in the Neovim Teamtype plugin (for Lazy):

    init = function()
        local teamtype = require("teamtype")

        -- Disable netrw, otherwise nvim will *download* URLs!! :O
        vim.g.loaded_netrwPlugin = 1
        vim.g.loaded_netrw = 1

        teamtype.config("hedgedoc", {
            cmd = {
                os.getenv("HOME") .. "/path/to/daemon/target/release/ethersync-hedgedoc",
                "https://md.ha.si/test",
            },
            root_dir = function(bufnr, on_dir)
                local name = vim.api.nvim_buf_get_name(bufnr)
                if string.find(name, "https://md.ha.si/test") == 1 then
                    on_dir("/tmp")
                end
            end,
        })
        teamtype.enable("hedgedoc")
    end

Open with:

nvim https://md.ha.si/test