mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-09 22:57:37 +00:00
Fix trouble on newer neovim
This commit is contained in:
parent
6af1770c36
commit
d76cb9bd06
@ -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",
|
||||
}),
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user