From 435937ddb84b304481521a66ec8db329cf418951 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 31 Aug 2024 04:00:01 -0500 Subject: [PATCH] feat(nvim): enable lsp inlay hints by default --- users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua index 0c61e1ad..8393029d 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -324,6 +324,10 @@ return { if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then require("hlargs").disable_buf(bufnr) end + + if capabilities.inlayHintProvider and not vim.lsp.inlay_hint.is_enabled({ bufnr = bufnr }) then + vim.lsp.inlay_hint.enable(true, { bufnr = bufnr }) + end end, }) local lspconfig = require("lspconfig")