diff options
author | Yigit Sever | 2022-12-11 18:31:03 +0300 |
---|---|---|
committer | Yigit Sever | 2022-12-11 18:31:03 +0300 |
commit | c97fce7e0ae0ac16cf987bd5ea1d3c0ab44e7c06 (patch) | |
tree | cddd3874e8431e85423c8c1fb5c67f49282c42ec /.config | |
parent | e65dc9c1803a69e64a61b66da30c670e6b504117 (diff) | |
download | dotfiles-c97fce7e0ae0ac16cf987bd5ea1d3c0ab44e7c06.tar.gz dotfiles-c97fce7e0ae0ac16cf987bd5ea1d3c0ab44e7c06.tar.bz2 dotfiles-c97fce7e0ae0ac16cf987bd5ea1d3c0ab44e7c06.zip |
feat(nvim): rust-tools inline hints
cool little prefixes
Diffstat (limited to '.config')
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 10 |
1 files 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{ | |||
377 | capabilities = capabilities | 377 | capabilities = capabilities |
378 | } | 378 | } |
379 | 379 | ||
380 | -- rust-tools {{{ -- | ||
381 | |||
380 | -- Configure LSP through rust-tools.nvim plugin. | 382 | -- Configure LSP through rust-tools.nvim plugin. |
381 | -- rust-tools will configure and enable certain LSP features for us. | 383 | -- rust-tools will configure and enable certain LSP features for us. |
382 | -- See https://github.com/simrat39/rust-tools.nvim#configuration | 384 | -- See https://github.com/simrat39/rust-tools.nvim#configuration |
@@ -387,9 +389,9 @@ local rust_opts = { | |||
387 | }, | 389 | }, |
388 | inlay_hints = { | 390 | inlay_hints = { |
389 | auto = true, | 391 | auto = true, |
390 | show_parameter_hints = false, | 392 | show_parameter_hints = true, |
391 | parameter_hints_prefix = "", | 393 | parameter_hints_prefix = "↸ ", |
392 | other_hints_prefix = "", | 394 | other_hints_prefix = "❱ ", |
393 | }, | 395 | }, |
394 | }, | 396 | }, |
395 | 397 | ||
@@ -414,6 +416,8 @@ local rust_opts = { | |||
414 | 416 | ||
415 | require('rust-tools').setup(rust_opts) | 417 | require('rust-tools').setup(rust_opts) |
416 | 418 | ||
419 | -- }}} rust-tools -- | ||
420 | |||
417 | 421 | ||
418 | -- }}} nvim-lsp -- | 422 | -- }}} nvim-lsp -- |
419 | 423 | ||