diff options
Diffstat (limited to 'ftplugin/rust.lua')
-rw-r--r-- | ftplugin/rust.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ftplugin/rust.lua b/ftplugin/rust.lua index 2a106e7e..4fb47582 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 @@ -28,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, |