diff --git a/CHANGELOG.md b/CHANGELOG.md index aac810d..8c1a2fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file. ## [Unreleased] ### Added - `CHANGELOG.md` according to [keepachangelog.com](http://keepachangelog.com). +- Option: `--serverlist` ### Changed - Renamed `nvim-remote.py` to `nvr` for convenience. diff --git a/nvr b/nvr index 6254b64..3361345 100755 --- a/nvr +++ b/nvr @@ -119,6 +119,9 @@ def parse_args(): parser.add_argument('--servername', metavar = '', help = 'path to unix socket (overrides $NVIM_LISTEN_ADDRESS)') + parser.add_argument('--serverlist', + action = 'store_true', + help = 'prints socket path to be used') return parser.parse_known_args() @@ -145,6 +148,10 @@ def main(): if sockpath is None: sockpath = '/tmp/nvimsocket' + if args.serverlist: + if sockpath is not None: + print(sockpath) + n = Neovim(sockpath) if args.remote_silent and n.attached(silent=True):