From 2a4324fe9b00802092564d5409e9a9590dbbff0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 1 Dec 2023 00:44:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20remove(nvim):=20inlay?= =?UTF-8?q?=20hints=20disabled=20when=20entering=20insert=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/plugins/lspconfig.lua | 32 ++++---------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.config/nvim/lua/plugins/lspconfig.lua b/.config/nvim/lua/plugins/lspconfig.lua index c545a9e4..56faa81b 100644 --- a/.config/nvim/lua/plugins/lspconfig.lua +++ b/.config/nvim/lua/plugins/lspconfig.lua @@ -37,33 +37,6 @@ 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) end, opts = { -- options for vim.diagnostic.config() @@ -87,6 +60,11 @@ return { enabled = true, }, servers = { + -- typos_lsp = { + -- settings = { + -- diagnosticSeverity = "Warning", + -- }, + -- }, lua_ls = { settings = { Lua = {