diff --git a/.config/nvim/lua/plugins/extras/lsp/lsp-extended.lua b/.config/nvim/lua/plugins/extras/lsp/lsp-extended.lua index 9c121cbc..183ccee3 100644 --- a/.config/nvim/lua/plugins/extras/lsp/lsp-extended.lua +++ b/.config/nvim/lua/plugins/extras/lsp/lsp-extended.lua @@ -44,33 +44,33 @@ return { keys[#keys + 1] = { "clr", "LspRestart", desc = "Restart Lsp" } keys[#keys + 1] = { "cls", "LspStart", desc = "Start Lsp" } keys[#keys + 1] = { "clS", "LspStop", desc = "Stop Lsp" } - require("lazyvim.util").lsp.on_attach(function(client, buffer) - if client.supports_method("textDocument/documentSymbol") then - -- Enable inlay hints if the client supports it. - if client.server_capabilities.inlayHintProvider then - local inlay_hints_group = vim.api.nvim_create_augroup("InlayHints", { clear = true }) - - -- Initial inlay hint display. - local mode = vim.api.nvim_get_mode().mode - vim.lsp.inlay_hint(buffer, mode == "n" or mode == "v") - - vim.api.nvim_create_autocmd("InsertEnter", { - group = inlay_hints_group, - buffer = buffer, - callback = function() - vim.lsp.inlay_hint(buffer, false) - end, - }) - vim.api.nvim_create_autocmd("InsertLeave", { - group = inlay_hints_group, - buffer = buffer, - callback = function() - vim.lsp.inlay_hint(buffer, true) - end, - }) - end - end - end) + -- require("lazyvim.util").lsp.on_attach(function(client, buffer) + -- if client.supports_method("textDocument/documentSymbol") then + -- -- Enable inlay hints if the client supports it. + -- if client.server_capabilities.inlayHintProvider then + -- local inlay_hints_group = vim.api.nvim_create_augroup("InlayHints", { clear = true }) + -- + -- -- Initial inlay hint display. + -- local mode = vim.api.nvim_get_mode().mode + -- vim.lsp.inlay_hint(buffer, mode == "n" or mode == "v") + -- + -- vim.api.nvim_create_autocmd("InsertEnter", { + -- group = inlay_hints_group, + -- buffer = buffer, + -- callback = function() + -- vim.lsp.inlay_hint(buffer, false) + -- end, + -- }) + -- vim.api.nvim_create_autocmd("InsertLeave", { + -- group = inlay_hints_group, + -- buffer = buffer, + -- callback = function() + -- vim.lsp.inlay_hint(buffer, true) + -- end, + -- }) + -- end + -- end + -- end) end, opts = { -- options for vim.diagnostic.config() @@ -91,7 +91,7 @@ return { }, }, inlay_hints = { - enabled = true, + enabled = false, }, servers = { lua_ls = {