diff --git a/neovim/lua/lazy_plugins.lua b/neovim/lua/lazy_plugins.lua index 9904aa7..0131e36 100644 --- a/neovim/lua/lazy_plugins.lua +++ b/neovim/lua/lazy_plugins.lua @@ -379,7 +379,9 @@ return { -- Better display of lsp diagnostics { "https://github.com/folke/trouble.nvim", + config = true, version = utils.map_version_rule({ + [">=0.9.2"] = "3.x.x", [">=0.7.2"] = "2.x.x", ["<0.7.2"] = "1.x.x", }), diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index 5ed0718..dfda46e 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -25,15 +25,6 @@ function M.config_lsp_ui() local hl = "DiagnosticSign" .. type vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl }) end - - utils.try_require("trouble", function(trouble) - trouble.setup({ - fold_open = "▼", - fold_closed = "▶", - icons = require("icons").nerd_font, - use_diagnostic_signs = true, - }) - end) end function M.get_default_attach(override_capabilities)