From 5eff5bb992402b5c21e0bd3b0b760e1655983174 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Tue, 4 Jun 2024 18:59:43 +0100 Subject: [PATCH 1/3] fix clippy warnings --- src/lsp/jsonrpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lsp/jsonrpc.rs b/src/lsp/jsonrpc.rs index bf00ca0..4b7617c 100644 --- a/src/lsp/jsonrpc.rs +++ b/src/lsp/jsonrpc.rs @@ -197,7 +197,7 @@ mod tests { fn test(input: Value) { let deserialized = from_value::(input.clone()).expect("failed to deserialize"); - let serialized = to_value(&deserialized).expect("failed to serialize"); + let serialized = to_value(deserialized).expect("failed to serialize"); assert_eq!(input, serialized); } From 6432c6b668f5b9130a08ceb1cd02bc3cef36a682 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Tue, 4 Jun 2024 19:07:02 +0100 Subject: [PATCH 2/3] update readme (unix sockets) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f026f77..7e9addc 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,8 @@ gc_interval = 10 # every 10 seconds # ports below 1024 will typically require root privileges and should be # avoided, the default was picked at random, this only needs to change if # another application happens to collide with ra-multiplex. +# +# on unix platforms, this can also be the path of a unix domain socket listen = ["127.0.0.1", 27631] # localhost & some random unprivileged port # listen = "/var/run/ra-mux/ra-mux.sock" # unix socket From c03b30550c8e2915863772d273b205f3b180a71a Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Tue, 4 Jun 2024 19:17:40 +0100 Subject: [PATCH 3/3] update neovim example (unix sockets) --- examples/neovim/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/neovim/init.lua b/examples/neovim/init.lua index 5571a92..7deb3a9 100644 --- a/examples/neovim/init.lua +++ b/examples/neovim/init.lua @@ -1,5 +1,7 @@ require'lspconfig'.rust_analyzer.setup { cmd = vim.lsp.rpc.connect("127.0.0.1", 27631), + -- When using unix domain sockets, use something like: + --cmd = vim.lsp.rpc.domain_socket_connect("/path/to/ra-multiplex.sock"), init_options = { lspMux = { version = "1",