about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-24 21:37:28 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-03-31 01:20:28 +0100
commitd66d75af27038fe7c5e538dbb7e5d1a2c574d965 (patch)
tree265b685d0d92e2045a1c88e9addb820f8b544a6d /dotfiles
parentDotfiles: Nvim: Add lspkind plugin (diff)
downloadnixos-config-d66d75af27038fe7c5e538dbb7e5d1a2c574d965.tar.gz
nixos-config-d66d75af27038fe7c5e538dbb7e5d1a2c574d965.tar.bz2
nixos-config-d66d75af27038fe7c5e538dbb7e5d1a2c574d965.zip
Dotfiles: Nvim: Use neovim nightly's (0.10) inlay hints
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/nvim/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/dotfiles/nvim/init.lua b/dotfiles/nvim/init.lua
index 6439b0d..71f62db 100644
--- a/dotfiles/nvim/init.lua
+++ b/dotfiles/nvim/init.lua
@@ -523,6 +523,9 @@ require('lazy').setup({
           --
           -- When you move your cursor, the highlights will be cleared (the second autocommand).
           local client = vim.lsp.get_client_by_id(event.data.client_id)
+          if client and client.server_capabilities.inlayHintProvider then
+            vim.lsp.inlay_hint.enable(0, true)
+          end
           if client and client.server_capabilities.documentHighlightProvider then
             vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
               buffer = event.buf,