feat(lsp): disable inlay hints

This commit is contained in:
Simon Lasbrugnas 2025-06-25 17:17:16 +02:00
parent 977f625e5d
commit 40a52978a9
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -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)