feat(diagnostics): More responsive and configurable diagnostics signs. (#303)

This commit is contained in:
Sindre T. Strøm
2021-04-16 17:57:16 +02:00
committed by GitHub
parent 090697e71f
commit da09da3318
6 changed files with 51 additions and 18 deletions

View File

@@ -21,7 +21,13 @@ function M.get_icon_state()
empty_open = "",
symlink = "",
symlink_open = "",
}
},
lsp = {
hint = "",
info = "",
warning = "",
error = "",
},
}
local user_icons = vim.g.nvim_tree_icons
@@ -43,6 +49,11 @@ function M.get_icon_state()
icons.folder_icons[key] = val
end
end
for key, val in pairs(user_icons.lsp or {}) do
if icons.lsp[key] then
icons.lsp[key] = val
end
end
end
return {