From 53fed9d65538e0b9dcad6f32cca63b1d445a76dd Mon Sep 17 00:00:00 2001 From: "hui.liu" Date: Fri, 9 Jul 2021 00:35:41 +0800 Subject: Check lsp client is active for all language files (#790) --- ftplugin/rust.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftplugin/rust.lua') diff --git a/ftplugin/rust.lua b/ftplugin/rust.lua index 2a106e7e..6a6af9d2 100644 --- a/ftplugin/rust.lua +++ b/ftplugin/rust.lua @@ -1,3 +1,7 @@ +if require("lv-utils").check_lsp_client_active "rust_analyzer" then + return +end + if O.lang.rust.rust_tools.active then local opts = { tools = { -- rust-tools options -- cgit v1.2.3 From d9fc6ec826da6330b243fe200eedbebd16dbbd98 Mon Sep 17 00:00:00 2001 From: Henrik Nilsson <43480919+Henrik-N@users.noreply.github.com> Date: Thu, 8 Jul 2021 18:58:22 +0200 Subject: User config option to change Rust inline hint/param prefixes (#774) * User configurable Rust inline hint prefixes * Ordered the language list * Rust param hints and ordered lang list --- ftplugin/rust.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftplugin/rust.lua') diff --git a/ftplugin/rust.lua b/ftplugin/rust.lua index 6a6af9d2..4fb47582 100644 --- a/ftplugin/rust.lua +++ b/ftplugin/rust.lua @@ -32,11 +32,11 @@ if O.lang.rust.rust_tools.active then -- prefix for parameter hints -- default: "<-" - parameter_hints_prefix = "<-", + parameter_hints_prefix = O.lang.rust.rust_tools.parameter_hints_prefix, -- prefix for all the other hints (type, chaining) -- default: "=>" - other_hints_prefix = "=>", + other_hints_prefix = O.lang.rust.rust_tools.other_hints_prefix, -- whether to align to the lenght of the longest line in the file max_len_align = false, -- cgit v1.2.3