From 40a52978a9eec19510424c70280046c63a2ec721 Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Wed, 25 Jun 2025 17:17:16 +0200 Subject: [PATCH] feat(lsp): disable inlay hints --- lua/custom/lsp/config.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/custom/lsp/config.lua b/lua/custom/lsp/config.lua index 6fcbdde..d661dce 100644 --- a/lua/custom/lsp/config.lua +++ b/lua/custom/lsp/config.lua @@ -25,6 +25,8 @@ lsp_zero.set_sign_icons({ lsp_zero.on_attach(function(_, bufnr) local opts = { buffer = bufnr, remap = false } lsp_zero.default_keymaps({ buffer = bufnr }) + -- Disable inlay hints (virtual text for variable types and name of function parameters) + vim.lsp.inlay_hint.enable(false) vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) vim.keymap.set("n", "gi", function() vim.lsp.buf.implementation() end, opts)