diff options
author | christianchiarulli <[email protected]> | 2021-07-08 17:17:45 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-08 17:17:45 -0400 |
commit | 9b1d18a1c172e09bc44a9c80b79d1d9cb37a140a (patch) | |
tree | 148adcad1734fe77aa858612fb1421cd9f089ceb /ftplugin/rust.lua | |
parent | 25cfc15b46039f4a40a23d83cc555ff02a39f086 (diff) | |
parent | 4f372bb3b77f5bc60aa14fdaf2b9687414fc981a (diff) |
Merge branch 'master' of github.com:ChristianChiarulli/LunarVim into rolling
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, |