From 094f7f2e730971b6f72feda0ee55c26760ad0ba1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 11 May 2024 10:04:38 -0500 Subject: [PATCH] refactor(nvim): do not auto toggle inlay hints --- .../.config/nvim/lua/plugins/configs/lsp.lua | 17 ----------------- 1 file changed, 17 deletions(-) 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 a67494c0..4edc63c9 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/lsp.lua @@ -19,23 +19,6 @@ local function on_attach(client, bufnr) disable_format_capability(capabilities) end end - -- Enable inlay hints if the language server provides them - if capabilities.inlayHintProvider then - vim.api.nvim_create_autocmd("InsertEnter", { - buffer = bufnr, - callback = function() - vim.lsp.inlay_hint.enable(true, { bufnr = bufnr }) - end, - group = lsp_augroup, - }) - vim.api.nvim_create_autocmd("InsertLeave", { - buffer = bufnr, - callback = function() - vim.lsp.inlay_hint.enable(false, { bufnr = bufnr }) - end, - group = lsp_augroup, - }) - end if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then require("hlargs").disable_buf(bufnr)