From c97fce7e0ae0ac16cf987bd5ea1d3c0ab44e7c06 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 11 Dec 2022 18:31:03 +0300 Subject: feat(nvim): rust-tools inline hints cool little prefixes --- .config/nvim/lua/plugin_settings.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 7ca473f..d03ad77 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -377,6 +377,8 @@ nvim_lsp['efm'].setup{ capabilities = capabilities } +-- rust-tools {{{ -- + -- Configure LSP through rust-tools.nvim plugin. -- rust-tools will configure and enable certain LSP features for us. -- See https://github.com/simrat39/rust-tools.nvim#configuration @@ -387,9 +389,9 @@ local rust_opts = { }, inlay_hints = { auto = true, - show_parameter_hints = false, - parameter_hints_prefix = "", - other_hints_prefix = "", + show_parameter_hints = true, + parameter_hints_prefix = "↸ ", + other_hints_prefix = "❱ ", }, }, @@ -414,6 +416,8 @@ local rust_opts = { require('rust-tools').setup(rust_opts) +-- }}} rust-tools -- + -- }}} nvim-lsp -- -- cgit v1.2.3-70-g09d2