Home

Awesome

Convert JetBrains deployment config to lua

Usage

$ python3 main.py ~/dev/idea-project

It will parse ~/dev/idea-project/.idea/ and generate ~/dev/idea-project/.nvim/deployment.lua

-- example deployment.lua
return {
  ["server1"] = {
    host = "server1",
    username = "web",
    port = 9202,
    mappings = {
      {
        ["local"] = "domains/example.com",
        ["remote"] = "/var/www/example.com",
      },
    },
    excludedPaths = {
      "src",
    },
  },
}

Example how this config can be used.

DISCLAIMER

There are no guarantees that it will work for you.

This is not a complete solution, it's just a quick hack that works for my projects, where I use only ssh connections with key based auth.

Password based auth is not supported!