From 410622c1f73ba16123dd67f6cde92d48ef7ebcd5 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Mon, 16 Oct 2023 22:01:03 +0200 Subject: [PATCH] Fix attach inlayhints --- lua/lsp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lsp.lua b/lua/lsp.lua index aa587d6..32f32bc 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -87,7 +87,7 @@ function P._setup_diagnostics() end end -function P.on_attach(_, bufnr) +function P.on_attach(client, bufnr) -- Mappings. -- See `:help vim.lsp.*` for documentation on any of the below functions local opts = { buffer = bufnr, } @@ -128,7 +128,7 @@ function P.on_attach(_, bufnr) vim.opt.updatetime = 300 - require("lsp-inlayhints").on_attach(client, bufnr) + require("lsp-inlayhints").on_attach(client, bufnr, false) end function P.reload_server_buf(name)