From 2f20c8b58b8d0d6ce93cbf3e8f2d942f8fdf76b9 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Wed, 21 Jun 2023 12:02:07 +0200 Subject: support new inlay hint --- lua/alpha/lsp/attach.lua | 2 ++ lua/plugins/lsp.lua | 1 + 2 files changed, 3 insertions(+) (limited to 'lua') diff --git a/lua/alpha/lsp/attach.lua b/lua/alpha/lsp/attach.lua index 45ce904..7fc7643 100644 --- a/lua/alpha/lsp/attach.lua +++ b/lua/alpha/lsp/attach.lua @@ -29,6 +29,8 @@ return function(client, bufnr) vim.bo.omnifunc = "v:lua.vim.lsp.omnifunc" + vim.lsp.buf.inlay_hint(bufnr) + -- Attach any filetype specific options to the client filetype_attach[filetype](client, bufnr) end diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index d84f15c..0458b7f 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -19,6 +19,7 @@ return { "WhoIsSethDaniel/mason-tool-installer.nvim", { "lvimuser/lsp-inlayhints.nvim", + enabled = false, config = function() require("lsp-inlayhints").setup() vim.api.nvim_create_augroup("LspAttach_inlayhints", {}) -- cgit v1.2.3